From 0003c5d2e6a21db1e3f37472d2ac9d4676439d5d Mon Sep 17 00:00:00 2001 From: Mitchell Williams Date: Fri, 2 Oct 2026 13:58:51 -0600 Subject: [PATCH] fix: bump transitive jackson deps to resolve CVEs formatting --- common/gradle.lockfile | 9 +- .../common/collection/ObjectArrayTest.groovy | 38 ++--- .../common/collection/ObjectMapTest.groovy | 38 ++--- .../core/common/connect/RequestTest.groovy | 24 ++- .../ResponseRetryConfigurationTest.groovy | 46 +++--- .../core/common/http/HttpStatusTest.groovy | 138 +++++++++--------- .../core/common/lang/DurationsTest.groovy | 54 +++---- .../common/messaging/MessageStatusTest.groovy | 6 +- .../BlockRetryConfigurationTest.groovy | 22 +-- .../process/PathResponseStatusTest.groovy | 8 +- .../common/reflection/AnnotationsTest.groovy | 2 +- .../core/common/reflection/FieldsTest.groovy | 104 ++++++------- .../common/security/LogValueRegexTest.groovy | 16 +- .../LocalDateDeserializerTest.groovy | 12 +- .../LocalDateTimeDeserializerTest.groovy | 6 +- .../LocalDateTimeTypeAdapterTest.groovy | 10 +- .../LocalDateTypeAdapterTest.groovy | 20 ++- .../OffsetDateTimeTypeAdapterTest.groovy | 8 +- .../ZonedDateTimeTypeAdapterTest.groovy | 8 +- .../ConfigurationStateTest.groovy | 16 +- context/gradle.lockfile | 17 +-- .../core/context/RequestContextTest.groovy | 2 +- .../mx/path/core/context/SessionTest.groovy | 2 +- .../environment/EnvironmentTest.groovy | 2 +- .../store/ScopedStoreCurrentUserTest.groovy | 2 +- .../context/store/ScopedStoreUserTest.groovy | 2 +- .../core/context/store/StoreLockTest.groovy | 4 +- gateway-generator/gradle.lockfile | 17 +-- gateway/gradle.lockfile | 17 +-- .../com/mx/path/gateway/GatewayTest.groovy | 2 +- .../accessor/AccessorConfigurationTest.groovy | 2 +- .../AccessorStackConfiguratorTest.groovy | 18 ++- .../ConfigurationBinderTest.groovy | 8 +- .../configuration/ConnectionBinderTest.groovy | 4 +- .../GatewayObjectConfiguratorTest.groovy | 2 +- .../context/GatewayRequestContextTest.groovy | 2 +- ...reamRequestLoggingEventListenerTest.groovy | 2 +- .../AsyncWithGatewayContextTest.groovy | 8 +- .../gateway/process/GatewayFutureTest.groovy | 8 +- http/gradle.lockfile | 17 +-- .../http/HttpAccessorConnectionTest.groovy | 40 ++--- .../connect/http/HttpClientFilterTest.groovy | 22 +-- .../api/connect/http/HttpRequestTest.groovy | 8 +- messaging/gradle.lockfile | 17 +-- .../messaging/MessageRequestTest.groovy | 2 +- .../remote/RemoteRequesterTest.groovy | 4 +- test-gateway-generator/gradle.lockfile | 17 +-- test-gateways/gradle.lockfile | 17 +-- .../SingletonBaseAccessorProxyTest.groovy | 2 +- test-models/gradle.lockfile | 17 +-- testing/gradle.lockfile | 17 +-- .../testing/request/RequestMatcherTest.groovy | 12 +- utilities/build.gradle | 10 ++ utilities/gradle.lockfile | 17 +-- .../core/utility/jwt/JWTUtilityTest.groovy | 2 +- .../utility/oauth/OAuthUtilityTest.groovy | 2 +- 56 files changed, 496 insertions(+), 433 deletions(-) diff --git a/common/gradle.lockfile b/common/gradle.lockfile index 845b00bf..f6eba443 100644 --- a/common/gradle.lockfile +++ b/common/gradle.lockfile @@ -4,8 +4,8 @@ com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.13.2=pmd @@ -74,8 +74,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -88,7 +87,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.30=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath diff --git a/common/src/test/groovy/com/mx/path/core/common/collection/ObjectArrayTest.groovy b/common/src/test/groovy/com/mx/path/core/common/collection/ObjectArrayTest.groovy index dfb343fe..153ac7ea 100644 --- a/common/src/test/groovy/com/mx/path/core/common/collection/ObjectArrayTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/collection/ObjectArrayTest.groovy @@ -202,15 +202,15 @@ class ObjectArrayTest extends Specification { subject.getAsBoolean(0) == result where: - name || value || result - "one String" || "1" || true - "zero String" || "0" || false - "one Int" || 1 || true - "zero Int" || 0 || false - "one Double" || 1.0 || true - "String true" || "true" || true - "Boolean true" || true || true - "Boolean false" || false || false + name || value || result + "one String" || "1" || true + "zero String" || "0" || false + "one Int" || 1 || true + "zero Int" || 0 || false + "one Double" || 1.0 || true + "String true" || "true" || true + "Boolean true" || true || true + "Boolean false" || false || false } @Unroll("getAsBoolean with default #name") @@ -224,16 +224,16 @@ class ObjectArrayTest extends Specification { subject.getAsBoolean(0, defaultValue) == result where: - name || value || defaultValue || result - "one String" || "1" || false || true - "zero String" || "0" || true || false - "one Int" || 1 || false || true - "zero Int" || 0 || true || false - "one Double" || 1.0 || false || true - "String true" || "true" || false || true - "Boolean true" || true || false || true - "Nothing true" || null || true || true - "Nothing false" || null || false || false + name || value || defaultValue || result + "one String" || "1" || false || true + "zero String" || "0" || true || false + "one Int" || 1 || false || true + "zero Int" || 0 || true || false + "one Double" || 1.0 || false || true + "String true" || "true" || false || true + "Boolean true" || true || false || true + "Nothing true" || null || true || true + "Nothing false" || null || false || false } def "getAsString"() { diff --git a/common/src/test/groovy/com/mx/path/core/common/collection/ObjectMapTest.groovy b/common/src/test/groovy/com/mx/path/core/common/collection/ObjectMapTest.groovy index 2aee40eb..990f0673 100644 --- a/common/src/test/groovy/com/mx/path/core/common/collection/ObjectMapTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/collection/ObjectMapTest.groovy @@ -112,15 +112,15 @@ class ObjectMapTest extends Specification { subject.getAsBoolean("value") == result where: - name || value || result - "one String" || "1" || true - "zero String" || "0" || false - "one Int" || 1 || true - "zero Int" || 0 || false - "one Double" || 1.0 || true - "String true" || "true" || true - "Boolean true" || true || true - "Boolean false" || false || false + name || value || result + "one String" || "1" || true + "zero String" || "0" || false + "one Int" || 1 || true + "zero Int" || 0 || false + "one Double" || 1.0 || true + "String true" || "true" || true + "Boolean true" || true || true + "Boolean false" || false || false } @Unroll("getAsBoolean with default #name") @@ -134,16 +134,16 @@ class ObjectMapTest extends Specification { subject.getAsBoolean("value", defaultValue) == result where: - name || value || defaultValue || result - "one String" || "1" || false || true - "zero String" || "0" || true || false - "one Int" || 1 || false || true - "zero Int" || 0 || true || false - "one Double" || 1.0 || false || true - "String true" || "true" || false || true - "Boolean true" || true || false || true - "Nothing true" || null || true || true - "Nothing false" || null || false || false + name || value || defaultValue || result + "one String" || "1" || false || true + "zero String" || "0" || true || false + "one Int" || 1 || false || true + "zero Int" || 0 || true || false + "one Double" || 1.0 || false || true + "String true" || "true" || false || true + "Boolean true" || true || false || true + "Nothing true" || null || true || true + "Nothing false" || null || false || false } def "getAsString"() { diff --git a/common/src/test/groovy/com/mx/path/core/common/connect/RequestTest.groovy b/common/src/test/groovy/com/mx/path/core/common/connect/RequestTest.groovy index c0143be8..750577b2 100644 --- a/common/src/test/groovy/com/mx/path/core/common/connect/RequestTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/connect/RequestTest.groovy @@ -214,7 +214,9 @@ class RequestTest extends Specification { subject.withResponseRetryConfiguration(ResponseRetryConfiguration.builder() .stopStrategy(ResponseRetryConfiguration.StopStrategy.COUNT) .count(3) - .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate({ t -> true }).build())) + .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate({ t -> + true + }).build())) .build()) when: @@ -230,12 +232,16 @@ class RequestTest extends Specification { def retry = ResponseRetryConfiguration.builder() .stopStrategy(ResponseRetryConfiguration.StopStrategy.COUNT) .count(3) - .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate({ t -> true }).build())) + .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate({ t -> + true + }).build())) .build() filterChain = mock(RequestFilter) subject = new TestRequest(filterChain) - def response = subject.withResponseRetryConfiguration(retry, { e -> new UpstreamSystemUnavailable("System is not ready", e) }) + def response = subject.withResponseRetryConfiguration(retry, { e -> + new UpstreamSystemUnavailable("System is not ready", e) + }) when: subject.execute().throwException() @@ -312,7 +318,9 @@ class RequestTest extends Specification { .withFeature(Feature.ACCOUNTS) .withHeader("headerKey", "headerValue") .withPath("/some/path") - .withQueryStringParams(new SingleValueMap().tap {put("key", "value")}) + .withQueryStringParams(new SingleValueMap().tap { + put("key", "value") + }) .withRequestTimeout(Duration.ofMillis(100)) when: "same instance" @@ -337,7 +345,9 @@ class RequestTest extends Specification { .withFeature(Feature.ACCOUNTS) .withHeader("headerKey", "headerValue") .withPath("/some/path") - .withQueryStringParams(new SingleValueMap().tap {put("key", "value")}) + .withQueryStringParams(new SingleValueMap().tap { + put("key", "value") + }) .withRequestTimeout(Duration.ofMillis(100)) then: @@ -353,7 +363,9 @@ class RequestTest extends Specification { .withFeature(Feature.TRANSFERS) .withHeader("headerKey", "headerValue2") .withPath("/some/other/path") - .withQueryStringParams(new SingleValueMap().tap {put("key", "value2")}) + .withQueryStringParams(new SingleValueMap().tap { + put("key", "value2") + }) .withRequestTimeout(Duration.ofMillis(100)) then: diff --git a/common/src/test/groovy/com/mx/path/core/common/connect/ResponseRetryConfigurationTest.groovy b/common/src/test/groovy/com/mx/path/core/common/connect/ResponseRetryConfigurationTest.groovy index 8646d3f3..d1e05c53 100644 --- a/common/src/test/groovy/com/mx/path/core/common/connect/ResponseRetryConfigurationTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/connect/ResponseRetryConfigurationTest.groovy @@ -39,7 +39,9 @@ class ResponseRetryConfigurationTest extends Specification implements WithMocker subject = ResponseRetryConfiguration.builder() .stopStrategy(RetryConfiguration.StopStrategy.COUNT) .count(2) - .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate( { t-> true }).build())) + .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate({ t-> + true + }).build())) .build() request.withRetryer(subject.instance()) @@ -86,8 +88,12 @@ class ResponseRetryConfigurationTest extends Specification implements WithMocker subject = ResponseRetryConfiguration.builder() .stopStrategy(RetryConfiguration.StopStrategy.COUNT) .count(2) - .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate( { t-> true }).build())) - .exceptionSupplier({ e -> new UpstreamSystemMaintenance("System is not ready", e) }) + .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate({ t-> + true + }).build())) + .exceptionSupplier({ e -> + new UpstreamSystemMaintenance("System is not ready", e) + }) .build() request.withResponseRetryConfiguration(subject) @@ -105,11 +111,17 @@ class ResponseRetryConfigurationTest extends Specification implements WithMocker subject = ResponseRetryConfiguration.builder() .stopStrategy(RetryConfiguration.StopStrategy.COUNT) .count(2) - .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate( { t-> true }).build())) - .exceptionSupplier({ e -> new UpstreamSystemMaintenance("System is not ready", e) }) + .onResponse(Collections.singletonList(ResponseMatcher.builder().predicate({ t-> + true + }).build())) + .exceptionSupplier({ e -> + new UpstreamSystemMaintenance("System is not ready", e) + }) .build() - request.withResponseRetryConfiguration(subject, { e -> new UpstreamSystemUnavailable("System is not available") }) + request.withResponseRetryConfiguration(subject, { e -> + new UpstreamSystemUnavailable("System is not available") + }) when: request.execute().throwException() @@ -133,13 +145,13 @@ class ResponseRetryConfigurationTest extends Specification implements WithMocker error.message == message where: - configuration | message - ResponseRetryConfiguration.builder().build() | "Missing required field at configuration." - ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).build() | "Missing required fields for stopStrategy COUNT: count at configuration." - ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.DURATION).build() | "Missing required fields for stopStrategy DURATION: duration at configuration." - ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIXED).build() | "Missing required fields for pauseStrategy FIXED: pause at configuration." + configuration | message + ResponseRetryConfiguration.builder().build() | "Missing required field at configuration." + ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).build() | "Missing required fields for stopStrategy COUNT: count at configuration." + ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.DURATION).build() | "Missing required fields for stopStrategy DURATION: duration at configuration." + ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIXED).build() | "Missing required fields for pauseStrategy FIXED: pause at configuration." ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.INCREMENTING).build() | "Missing required fields for pauseStrategy INCREMENTING: initialPause, increment at configuration." - ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIBONACCI).build() | "Missing required fields for pauseStrategy FIBONACCI: multiplier, maxPause at configuration." + ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIBONACCI).build() | "Missing required fields for pauseStrategy FIBONACCI: multiplier, maxPause at configuration." } @Unroll @@ -155,12 +167,12 @@ class ResponseRetryConfigurationTest extends Specification implements WithMocker noExceptionThrown() where: - configuration | _ - ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).build() | null - ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.DURATION).duration(Duration.ofSeconds(1)).build() | null - ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIXED).pause(Duration.ofMillis(10)).build() | null + configuration | _ + ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).build() | null + ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.DURATION).duration(Duration.ofSeconds(1)).build() | null + ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIXED).pause(Duration.ofMillis(10)).build() | null ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.INCREMENTING).initialPause(Duration.ofMillis(10)).increment(Duration.ofMillis(10)).build() | null - ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIBONACCI).maxPause(Duration.ofMillis(100)).multiplier(Duration.ofSeconds(1)).build() | null + ResponseRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIBONACCI).maxPause(Duration.ofMillis(100)).multiplier(Duration.ofSeconds(1)).build() | null } def "call when all attempts fail"() { diff --git a/common/src/test/groovy/com/mx/path/core/common/http/HttpStatusTest.groovy b/common/src/test/groovy/com/mx/path/core/common/http/HttpStatusTest.groovy index 9cf96b50..b4c7c0b3 100644 --- a/common/src/test/groovy/com/mx/path/core/common/http/HttpStatusTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/http/HttpStatusTest.groovy @@ -15,75 +15,75 @@ class HttpStatusTest extends Specification { result == pathResponseStatus where: - httpStatus || pathResponseStatus + httpStatus || pathResponseStatus HttpStatus.CONTINUE || PathResponseStatus.UNAVAILABLE - HttpStatus.SWITCHING_PROTOCOLS || PathResponseStatus.UNAVAILABLE - HttpStatus.PROCESSING || PathResponseStatus.OK - HttpStatus.CHECKPOINT || PathResponseStatus.UNAVAILABLE - HttpStatus.OK || PathResponseStatus.OK - HttpStatus.CREATED || PathResponseStatus.OK - HttpStatus.ACCEPTED || PathResponseStatus.ACCEPTED - HttpStatus.NON_AUTHORITATIVE_INFORMATION || PathResponseStatus.UNAVAILABLE - HttpStatus.NO_CONTENT || PathResponseStatus.NO_CONTENT - HttpStatus.RESET_CONTENT || PathResponseStatus.UNAVAILABLE - HttpStatus.PARTIAL_CONTENT || PathResponseStatus.UNAVAILABLE - HttpStatus.MULTI_STATUS || PathResponseStatus.UNAVAILABLE - HttpStatus.ALREADY_REPORTED || PathResponseStatus.UNAVAILABLE - HttpStatus.IM_USED || PathResponseStatus.UNAVAILABLE - HttpStatus.MULTIPLE_CHOICES || PathResponseStatus.UNAVAILABLE - HttpStatus.MOVED_PERMANENTLY || PathResponseStatus.NOT_FOUND - HttpStatus.FOUND || PathResponseStatus.OK - HttpStatus.MOVED_TEMPORARILY || PathResponseStatus.NOT_FOUND - HttpStatus.SEE_OTHER || PathResponseStatus.UNAVAILABLE - HttpStatus.NOT_MODIFIED || PathResponseStatus.UNAVAILABLE - HttpStatus.USE_PROXY || PathResponseStatus.UNAVAILABLE - HttpStatus.TEMPORARY_REDIRECT || PathResponseStatus.UNAVAILABLE - HttpStatus.PERMANENT_REDIRECT || PathResponseStatus.UNAVAILABLE - HttpStatus.BAD_REQUEST || PathResponseStatus.BAD_REQUEST - HttpStatus.UNAUTHORIZED || PathResponseStatus.UNAUTHORIZED - HttpStatus.PAYMENT_REQUIRED || PathResponseStatus.UNAUTHORIZED - HttpStatus.FORBIDDEN || PathResponseStatus.NOT_ALLOWED - HttpStatus.NOT_FOUND || PathResponseStatus.NOT_FOUND - HttpStatus.METHOD_NOT_ALLOWED || PathResponseStatus.NOT_ALLOWED - HttpStatus.NOT_ACCEPTABLE || PathResponseStatus.USER_ERROR - HttpStatus.PROXY_AUTHENTICATION_REQUIRED || PathResponseStatus.UNAUTHORIZED - HttpStatus.REQUEST_TIMEOUT || PathResponseStatus.TIMEOUT - HttpStatus.CONFLICT || PathResponseStatus.NOT_ALLOWED - HttpStatus.GONE || PathResponseStatus.NOT_FOUND - HttpStatus.LENGTH_REQUIRED || PathResponseStatus.BAD_REQUEST - HttpStatus.PRECONDITION_FAILED || PathResponseStatus.USER_ERROR - HttpStatus.PAYLOAD_TOO_LARGE || PathResponseStatus.BAD_REQUEST - HttpStatus.REQUEST_ENTITY_TOO_LARGE || PathResponseStatus.BAD_REQUEST - HttpStatus.URI_TOO_LONG || PathResponseStatus.BAD_REQUEST - HttpStatus.REQUEST_URI_TOO_LONG || PathResponseStatus.BAD_REQUEST - HttpStatus.UNSUPPORTED_MEDIA_TYPE || PathResponseStatus.BAD_REQUEST - HttpStatus.REQUESTED_RANGE_NOT_SATISFIABLE || PathResponseStatus.USER_ERROR - HttpStatus.EXPECTATION_FAILED || PathResponseStatus.USER_ERROR - HttpStatus.I_AM_A_TEAPOT || PathResponseStatus.OK - HttpStatus.INSUFFICIENT_SPACE_ON_RESOURCE || PathResponseStatus.INTERNAL_ERROR - HttpStatus.METHOD_FAILURE || PathResponseStatus.INTERNAL_ERROR - HttpStatus.DESTINATION_LOCKED || PathResponseStatus.NOT_ALLOWED - HttpStatus.UNPROCESSABLE_ENTITY || PathResponseStatus.USER_ERROR - HttpStatus.LOCKED || PathResponseStatus.NOT_ALLOWED - HttpStatus.FAILED_DEPENDENCY || PathResponseStatus.USER_ERROR - HttpStatus.TOO_EARLY || PathResponseStatus.NOT_ALLOWED - HttpStatus.UPGRADE_REQUIRED || PathResponseStatus.USER_ERROR - HttpStatus.PRECONDITION_REQUIRED || PathResponseStatus.USER_ERROR - HttpStatus.TOO_MANY_REQUESTS || PathResponseStatus.TOO_MANY_REQUESTS - HttpStatus.REQUEST_HEADER_FIELDS_TOO_LARGE || PathResponseStatus.BAD_REQUEST - HttpStatus.UNAVAILABLE_FOR_LEGAL_REASONS || PathResponseStatus.NOT_ALLOWED - HttpStatus.INTERNAL_SERVER_ERROR || PathResponseStatus.INTERNAL_ERROR - HttpStatus.NOT_IMPLEMENTED || PathResponseStatus.NOT_IMPLEMENTED - HttpStatus.BAD_GATEWAY || PathResponseStatus.UNAVAILABLE - HttpStatus.SERVICE_UNAVAILABLE || PathResponseStatus.UNAVAILABLE - HttpStatus.GATEWAY_TIMEOUT || PathResponseStatus.TIMEOUT - HttpStatus.HTTP_VERSION_NOT_SUPPORTED || PathResponseStatus.BAD_REQUEST - HttpStatus.VARIANT_ALSO_NEGOTIATES || PathResponseStatus.NOT_ALLOWED - HttpStatus.INSUFFICIENT_STORAGE || PathResponseStatus.INTERNAL_ERROR - HttpStatus.LOOP_DETECTED || PathResponseStatus.INTERNAL_ERROR - HttpStatus.BANDWIDTH_LIMIT_EXCEEDED || PathResponseStatus.OK - HttpStatus.NOT_EXTENDED || PathResponseStatus.INTERNAL_ERROR - HttpStatus.NETWORK_AUTHENTICATION_REQUIRED || PathResponseStatus.NOT_ALLOWED - HttpStatus.UPSTREAM_SERVICE_UNAVAILABLE || PathResponseStatus.UPSTREAM_SERVICE_UNAVAILABLE + HttpStatus.SWITCHING_PROTOCOLS || PathResponseStatus.UNAVAILABLE + HttpStatus.PROCESSING || PathResponseStatus.OK + HttpStatus.CHECKPOINT || PathResponseStatus.UNAVAILABLE + HttpStatus.OK || PathResponseStatus.OK + HttpStatus.CREATED || PathResponseStatus.OK + HttpStatus.ACCEPTED || PathResponseStatus.ACCEPTED + HttpStatus.NON_AUTHORITATIVE_INFORMATION || PathResponseStatus.UNAVAILABLE + HttpStatus.NO_CONTENT || PathResponseStatus.NO_CONTENT + HttpStatus.RESET_CONTENT || PathResponseStatus.UNAVAILABLE + HttpStatus.PARTIAL_CONTENT || PathResponseStatus.UNAVAILABLE + HttpStatus.MULTI_STATUS || PathResponseStatus.UNAVAILABLE + HttpStatus.ALREADY_REPORTED || PathResponseStatus.UNAVAILABLE + HttpStatus.IM_USED || PathResponseStatus.UNAVAILABLE + HttpStatus.MULTIPLE_CHOICES || PathResponseStatus.UNAVAILABLE + HttpStatus.MOVED_PERMANENTLY || PathResponseStatus.NOT_FOUND + HttpStatus.FOUND || PathResponseStatus.OK + HttpStatus.MOVED_TEMPORARILY || PathResponseStatus.NOT_FOUND + HttpStatus.SEE_OTHER || PathResponseStatus.UNAVAILABLE + HttpStatus.NOT_MODIFIED || PathResponseStatus.UNAVAILABLE + HttpStatus.USE_PROXY || PathResponseStatus.UNAVAILABLE + HttpStatus.TEMPORARY_REDIRECT || PathResponseStatus.UNAVAILABLE + HttpStatus.PERMANENT_REDIRECT || PathResponseStatus.UNAVAILABLE + HttpStatus.BAD_REQUEST || PathResponseStatus.BAD_REQUEST + HttpStatus.UNAUTHORIZED || PathResponseStatus.UNAUTHORIZED + HttpStatus.PAYMENT_REQUIRED || PathResponseStatus.UNAUTHORIZED + HttpStatus.FORBIDDEN || PathResponseStatus.NOT_ALLOWED + HttpStatus.NOT_FOUND || PathResponseStatus.NOT_FOUND + HttpStatus.METHOD_NOT_ALLOWED || PathResponseStatus.NOT_ALLOWED + HttpStatus.NOT_ACCEPTABLE || PathResponseStatus.USER_ERROR + HttpStatus.PROXY_AUTHENTICATION_REQUIRED || PathResponseStatus.UNAUTHORIZED + HttpStatus.REQUEST_TIMEOUT || PathResponseStatus.TIMEOUT + HttpStatus.CONFLICT || PathResponseStatus.NOT_ALLOWED + HttpStatus.GONE || PathResponseStatus.NOT_FOUND + HttpStatus.LENGTH_REQUIRED || PathResponseStatus.BAD_REQUEST + HttpStatus.PRECONDITION_FAILED || PathResponseStatus.USER_ERROR + HttpStatus.PAYLOAD_TOO_LARGE || PathResponseStatus.BAD_REQUEST + HttpStatus.REQUEST_ENTITY_TOO_LARGE || PathResponseStatus.BAD_REQUEST + HttpStatus.URI_TOO_LONG || PathResponseStatus.BAD_REQUEST + HttpStatus.REQUEST_URI_TOO_LONG || PathResponseStatus.BAD_REQUEST + HttpStatus.UNSUPPORTED_MEDIA_TYPE || PathResponseStatus.BAD_REQUEST + HttpStatus.REQUESTED_RANGE_NOT_SATISFIABLE || PathResponseStatus.USER_ERROR + HttpStatus.EXPECTATION_FAILED || PathResponseStatus.USER_ERROR + HttpStatus.I_AM_A_TEAPOT || PathResponseStatus.OK + HttpStatus.INSUFFICIENT_SPACE_ON_RESOURCE || PathResponseStatus.INTERNAL_ERROR + HttpStatus.METHOD_FAILURE || PathResponseStatus.INTERNAL_ERROR + HttpStatus.DESTINATION_LOCKED || PathResponseStatus.NOT_ALLOWED + HttpStatus.UNPROCESSABLE_ENTITY || PathResponseStatus.USER_ERROR + HttpStatus.LOCKED || PathResponseStatus.NOT_ALLOWED + HttpStatus.FAILED_DEPENDENCY || PathResponseStatus.USER_ERROR + HttpStatus.TOO_EARLY || PathResponseStatus.NOT_ALLOWED + HttpStatus.UPGRADE_REQUIRED || PathResponseStatus.USER_ERROR + HttpStatus.PRECONDITION_REQUIRED || PathResponseStatus.USER_ERROR + HttpStatus.TOO_MANY_REQUESTS || PathResponseStatus.TOO_MANY_REQUESTS + HttpStatus.REQUEST_HEADER_FIELDS_TOO_LARGE || PathResponseStatus.BAD_REQUEST + HttpStatus.UNAVAILABLE_FOR_LEGAL_REASONS || PathResponseStatus.NOT_ALLOWED + HttpStatus.INTERNAL_SERVER_ERROR || PathResponseStatus.INTERNAL_ERROR + HttpStatus.NOT_IMPLEMENTED || PathResponseStatus.NOT_IMPLEMENTED + HttpStatus.BAD_GATEWAY || PathResponseStatus.UNAVAILABLE + HttpStatus.SERVICE_UNAVAILABLE || PathResponseStatus.UNAVAILABLE + HttpStatus.GATEWAY_TIMEOUT || PathResponseStatus.TIMEOUT + HttpStatus.HTTP_VERSION_NOT_SUPPORTED || PathResponseStatus.BAD_REQUEST + HttpStatus.VARIANT_ALSO_NEGOTIATES || PathResponseStatus.NOT_ALLOWED + HttpStatus.INSUFFICIENT_STORAGE || PathResponseStatus.INTERNAL_ERROR + HttpStatus.LOOP_DETECTED || PathResponseStatus.INTERNAL_ERROR + HttpStatus.BANDWIDTH_LIMIT_EXCEEDED || PathResponseStatus.OK + HttpStatus.NOT_EXTENDED || PathResponseStatus.INTERNAL_ERROR + HttpStatus.NETWORK_AUTHENTICATION_REQUIRED || PathResponseStatus.NOT_ALLOWED + HttpStatus.UPSTREAM_SERVICE_UNAVAILABLE || PathResponseStatus.UPSTREAM_SERVICE_UNAVAILABLE } } diff --git a/common/src/test/groovy/com/mx/path/core/common/lang/DurationsTest.groovy b/common/src/test/groovy/com/mx/path/core/common/lang/DurationsTest.groovy index 4d186bf6..e09bf8b3 100644 --- a/common/src/test/groovy/com/mx/path/core/common/lang/DurationsTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/lang/DurationsTest.groovy @@ -14,15 +14,15 @@ class DurationsTest extends Specification { result == unit where: - duration | unit - Duration.ofDays(2) | ChronoUnit.DAYS - Duration.ofDays(1).plusHours(1) | ChronoUnit.HOURS - Duration.ofDays(2).plusMillis(500) | ChronoUnit.MILLIS - Duration.ofSeconds(10) | ChronoUnit.SECONDS - Duration.ofSeconds(62) | ChronoUnit.SECONDS - Duration.ofMillis(10) | ChronoUnit.MILLIS - Duration.ofNanos(100000000) | ChronoUnit.MILLIS - Duration.ofNanos(100000001) | ChronoUnit.NANOS + duration | unit + Duration.ofDays(2) | ChronoUnit.DAYS + Duration.ofDays(1).plusHours(1) | ChronoUnit.HOURS + Duration.ofDays(2).plusMillis(500) | ChronoUnit.MILLIS + Duration.ofSeconds(10) | ChronoUnit.SECONDS + Duration.ofSeconds(62) | ChronoUnit.SECONDS + Duration.ofMillis(10) | ChronoUnit.MILLIS + Duration.ofNanos(100000000) | ChronoUnit.MILLIS + Duration.ofNanos(100000001) | ChronoUnit.NANOS } def ".toCompactString"() { @@ -33,16 +33,16 @@ class DurationsTest extends Specification { result == compactString where: - duration | compactString - Duration.ofDays(2) | "2d" - Duration.ofDays(1).plusHours(1) | "25h" - Duration.ofDays(2).plusMillis(500) | "172800500m" - Duration.ofMinutes(10) | "10min" - Duration.ofMinutes(1).plusSeconds(2) | "62s" - Duration.ofSeconds(10) | "10s" - Duration.ofMillis(10) | "10m" - Duration.ofNanos(100000000) | "100m" - Duration.ofNanos(100000001) | "100000001n" + duration | compactString + Duration.ofDays(2) | "2d" + Duration.ofDays(1).plusHours(1) | "25h" + Duration.ofDays(2).plusMillis(500) | "172800500m" + Duration.ofMinutes(10) | "10min" + Duration.ofMinutes(1).plusSeconds(2) | "62s" + Duration.ofSeconds(10) | "10s" + Duration.ofMillis(10) | "10m" + Duration.ofNanos(100000000) | "100m" + Duration.ofNanos(100000001) | "100000001n" } def ".fromCompactString"() { @@ -53,14 +53,14 @@ class DurationsTest extends Specification { result == expected where: - val | expected - " 10 s " | Duration.ofSeconds(10) - " 10sec " | Duration.ofSeconds(10) - " 10 m " | Duration.ofMillis(10) - " 10ms " | Duration.ofMillis(10) + val | expected + " 10 s " | Duration.ofSeconds(10) + " 10sec " | Duration.ofSeconds(10) + " 10 m " | Duration.ofMillis(10) + " 10ms " | Duration.ofMillis(10) " 10milliseconds " | Duration.ofMillis(10) - " 10min " | Duration.ofMinutes(10) - " 10nanos " | Duration.ofNanos(10) - " 10h " | Duration.ofHours(10) + " 10min " | Duration.ofMinutes(10) + " 10nanos " | Duration.ofNanos(10) + " 10h " | Duration.ofHours(10) } } diff --git a/common/src/test/groovy/com/mx/path/core/common/messaging/MessageStatusTest.groovy b/common/src/test/groovy/com/mx/path/core/common/messaging/MessageStatusTest.groovy index abeb14cf..7d1172ab 100644 --- a/common/src/test/groovy/com/mx/path/core/common/messaging/MessageStatusTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/messaging/MessageStatusTest.groovy @@ -17,9 +17,9 @@ class MessageStatusTest extends Specification { result == expected where: - httpStatus || expected + httpStatus || expected HttpStatus.OK || MessageStatus.SUCCESS - HttpStatus.REQUEST_TIMEOUT || MessageStatus.TIMEOUT + HttpStatus.REQUEST_TIMEOUT || MessageStatus.TIMEOUT HttpStatus.ALREADY_REPORTED || null } @@ -32,7 +32,7 @@ class MessageStatusTest extends Specification { result == expected where: - messageStatus || expected + messageStatus || expected MessageStatus.SUCCESS || HttpStatus.OK MessageStatus.TIMEOUT || HttpStatus.REQUEST_TIMEOUT } diff --git a/common/src/test/groovy/com/mx/path/core/common/process/BlockRetryConfigurationTest.groovy b/common/src/test/groovy/com/mx/path/core/common/process/BlockRetryConfigurationTest.groovy index 88160523..1b0a089f 100644 --- a/common/src/test/groovy/com/mx/path/core/common/process/BlockRetryConfigurationTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/process/BlockRetryConfigurationTest.groovy @@ -51,13 +51,13 @@ class BlockRetryConfigurationTest extends Specification implements WithMockery { error.message == message where: - configuration | message - BlockRetryConfiguration.builder().build() | "Missing required field at configuration." - BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).build() | "Missing required fields for stopStrategy COUNT: count at configuration." - BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.DURATION).build() | "Missing required fields for stopStrategy DURATION: duration at configuration." - BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIXED).build() | "Missing required fields for pauseStrategy FIXED: pause at configuration." + configuration | message + BlockRetryConfiguration.builder().build() | "Missing required field at configuration." + BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).build() | "Missing required fields for stopStrategy COUNT: count at configuration." + BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.DURATION).build() | "Missing required fields for stopStrategy DURATION: duration at configuration." + BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIXED).build() | "Missing required fields for pauseStrategy FIXED: pause at configuration." BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.INCREMENTING).build() | "Missing required fields for pauseStrategy INCREMENTING: initialPause, increment at configuration." - BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIBONACCI).build() | "Missing required fields for pauseStrategy FIBONACCI: multiplier, maxPause at configuration." + BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIBONACCI).build() | "Missing required fields for pauseStrategy FIBONACCI: multiplier, maxPause at configuration." } @Unroll @@ -73,12 +73,12 @@ class BlockRetryConfigurationTest extends Specification implements WithMockery { noExceptionThrown() where: - configuration | _ - BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).build() | null - BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.DURATION).duration(Duration.ofSeconds(1)).build() | null - BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIXED).pause(Duration.ofMillis(10)).build() | null + configuration | _ + BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).build() | null + BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.DURATION).duration(Duration.ofSeconds(1)).build() | null + BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIXED).pause(Duration.ofMillis(10)).build() | null BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.INCREMENTING).initialPause(Duration.ofMillis(10)).increment(Duration.ofMillis(10)).build() | null - BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIBONACCI).maxPause(Duration.ofMillis(100)).multiplier(Duration.ofSeconds(1)).build() | null + BlockRetryConfiguration.builder().stopStrategy(RetryConfiguration.StopStrategy.COUNT).count(1).pauseStrategy(RetryConfiguration.PauseStrategy.FIBONACCI).maxPause(Duration.ofMillis(100)).multiplier(Duration.ofSeconds(1)).build() | null } def "call when all attempts fail"() { diff --git a/common/src/test/groovy/com/mx/path/core/common/process/PathResponseStatusTest.groovy b/common/src/test/groovy/com/mx/path/core/common/process/PathResponseStatusTest.groovy index 5fa56392..4d926265 100644 --- a/common/src/test/groovy/com/mx/path/core/common/process/PathResponseStatusTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/process/PathResponseStatusTest.groovy @@ -16,10 +16,10 @@ class PathResponseStatusTest extends Specification { result == expected where: - pathResponseStatus || expected + pathResponseStatus || expected PathResponseStatus.TOO_MANY_REQUESTS || HttpStatus.TOO_MANY_REQUESTS - PathResponseStatus.INTERNAL_ERROR || HttpStatus.INTERNAL_SERVER_ERROR - PathResponseStatus.UNAVAILABLE || HttpStatus.SERVICE_UNAVAILABLE - PathResponseStatus.TIMEOUT || HttpStatus.GATEWAY_TIMEOUT + PathResponseStatus.INTERNAL_ERROR || HttpStatus.INTERNAL_SERVER_ERROR + PathResponseStatus.UNAVAILABLE || HttpStatus.SERVICE_UNAVAILABLE + PathResponseStatus.TIMEOUT || HttpStatus.GATEWAY_TIMEOUT } } diff --git a/common/src/test/groovy/com/mx/path/core/common/reflection/AnnotationsTest.groovy b/common/src/test/groovy/com/mx/path/core/common/reflection/AnnotationsTest.groovy index 86720036..5000883a 100644 --- a/common/src/test/groovy/com/mx/path/core/common/reflection/AnnotationsTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/reflection/AnnotationsTest.groovy @@ -47,7 +47,7 @@ class AnnotationsTest extends Specification { fields[3].getAnnotation(Nullable.class) != null } - def "hasAnnotation"() { + def "hasAnnotation"() { when: true == true diff --git a/common/src/test/groovy/com/mx/path/core/common/reflection/FieldsTest.groovy b/common/src/test/groovy/com/mx/path/core/common/reflection/FieldsTest.groovy index 5fdd3490..a6fabf38 100644 --- a/common/src/test/groovy/com/mx/path/core/common/reflection/FieldsTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/reflection/FieldsTest.groovy @@ -74,60 +74,60 @@ class FieldsTest extends Specification { Fields.getFieldValue(fieldName, obj) == expected where: - fieldName | val | expected - "pDouble" | " 8 " | Double.valueOf(8.0) - "pDouble" | " 8.1 " | Double.valueOf(8.1) - "pDouble" | Double.valueOf(8.2) | Double.valueOf(8.2) - - "cDouble" | " 9 " | Double.valueOf(9.0) - "cDouble" | " 9.1 " | Double.valueOf(9.1) - "cDouble" | Double.valueOf(9.2) | Double.valueOf(9.2) - - "duration" | " 10 s " | Duration.ofSeconds(10) - "duration" | " 10sec " | Duration.ofSeconds(10) - "duration" | " 10 m " | Duration.ofMillis(10) - "duration" | " 10ms " | Duration.ofMillis(10) - "duration" | " 10milliseconds " | Duration.ofMillis(10) - "duration" | " 10min " | Duration.ofMinutes(10) - "duration" | " 10nanos " | Duration.ofNanos(10) - "duration" | " 10h " | Duration.ofHours(10) - - "enumeration" | "ACCOUNTS" | com.mx.path.core.common.request.Feature.ACCOUNTS - "enumeration" | " TRANSFERS " | com.mx.path.core.common.request.Feature.TRANSFERS - "enumeration" | " Transfers " | com.mx.path.core.common.request.Feature.TRANSFERS + fieldName | val | expected + "pDouble" | " 8 " | Double.valueOf(8.0) + "pDouble" | " 8.1 " | Double.valueOf(8.1) + "pDouble" | Double.valueOf(8.2) | Double.valueOf(8.2) + + "cDouble" | " 9 " | Double.valueOf(9.0) + "cDouble" | " 9.1 " | Double.valueOf(9.1) + "cDouble" | Double.valueOf(9.2) | Double.valueOf(9.2) + + "duration" | " 10 s " | Duration.ofSeconds(10) + "duration" | " 10sec " | Duration.ofSeconds(10) + "duration" | " 10 m " | Duration.ofMillis(10) + "duration" | " 10ms " | Duration.ofMillis(10) + "duration" | " 10milliseconds " | Duration.ofMillis(10) + "duration" | " 10min " | Duration.ofMinutes(10) + "duration" | " 10nanos " | Duration.ofNanos(10) + "duration" | " 10h " | Duration.ofHours(10) + + "enumeration" | "ACCOUNTS" | com.mx.path.core.common.request.Feature.ACCOUNTS + "enumeration" | " TRANSFERS " | com.mx.path.core.common.request.Feature.TRANSFERS + "enumeration" | " Transfers " | com.mx.path.core.common.request.Feature.TRANSFERS "enumeration" | " ach_transfers " | com.mx.path.core.common.request.Feature.ACH_TRANSFERS - "pFloat" | " 5 " | Float.valueOf(5.0) - "pFloat" | " 6.1 " | Float.valueOf(6.1) - "pFloat" | Float.valueOf(6.2) | Float.valueOf(6.2) + "pFloat" | " 5 " | Float.valueOf(5.0) + "pFloat" | " 6.1 " | Float.valueOf(6.1) + "pFloat" | Float.valueOf(6.2) | Float.valueOf(6.2) - "cFloat" | " 7 " | Float.valueOf(7.0) - "cFloat" | " 7.1 " | Float.valueOf(7.1) - "cFloat" | Float.valueOf(7.2) | Float.valueOf(7.2) + "cFloat" | " 7 " | Float.valueOf(7.0) + "cFloat" | " 7.1 " | Float.valueOf(7.1) + "cFloat" | Float.valueOf(7.2) | Float.valueOf(7.2) - "pInt" | 1 | 1 - "pInt" | " 2 " | 2 + "pInt" | 1 | 1 + "pInt" | " 2 " | 2 - "cInt" | 3 | 3 - "cInt" | " 4 " | 4 + "cInt" | 3 | 3 + "cInt" | " 4 " | 4 - "klass" | "com.mx.testing.ConstructorsTestClass" | ConstructorsTestClass.class + "klass" | "com.mx.testing.ConstructorsTestClass" | ConstructorsTestClass.class - "pLong" | " 10 " | Long.valueOf(10) - "pLong" | Long.valueOf(10) | Long.valueOf(10) + "pLong" | " 10 " | Long.valueOf(10) + "pLong" | Long.valueOf(10) | Long.valueOf(10) - "cLong" | " 11 " | Long.valueOf(11) - "cLong" | Long.valueOf(11) | Long.valueOf(11) + "cLong" | " 11 " | Long.valueOf(11) + "cLong" | Long.valueOf(11) | Long.valueOf(11) - "string" | " strValue " | " strValue " - "string" | 12 | "12" - "string" | Long.valueOf(12) | "12" - "string" | Float.valueOf(12.1) | "12.1" - "string" | Double.valueOf(12.2) | "12.2" + "string" | " strValue " | " strValue " + "string" | 12 | "12" + "string" | Long.valueOf(12) | "12" + "string" | Float.valueOf(12.1) | "12.1" + "string" | Double.valueOf(12.2) | "12.2" - "zoneId" | "MST" | ZoneId.of("MST", ZoneId.SHORT_IDS) - "zoneId" | "-02:00" | ZoneId.of("-02:00") - "zoneId" | "America/Los_Angeles" | ZoneId.of("America/Los_Angeles") + "zoneId" | "MST" | ZoneId.of("MST", ZoneId.SHORT_IDS) + "zoneId" | "-02:00" | ZoneId.of("-02:00") + "zoneId" | "America/Los_Angeles" | ZoneId.of("America/Los_Angeles") } def "setFieldValue coerce failures"() { @@ -144,17 +144,17 @@ class FieldsTest extends Specification { err.getMessage() == expected where: - fieldName | val | expected - "duration" | " 10 s1 " | "Invalid duration string: 10 s1 " - "duration" | " 10 " | "Invalid duration string: 10 " - "duration" | " 10 g" | "Invalid duration unit: 10 g" - "duration" | 10 | "Duration value must be a string" + fieldName | val | expected + "duration" | " 10 s1 " | "Invalid duration string: 10 s1 " + "duration" | " 10 " | "Invalid duration string: 10 " + "duration" | " 10 g" | "Invalid duration unit: 10 g" + "duration" | 10 | "Duration value must be a string" - "enumeration" | "JUNK" | "Invalid value JUNK for enumeration com.mx.path.core.common.request.Feature" + "enumeration" | "JUNK" | "Invalid value JUNK for enumeration com.mx.path.core.common.request.Feature" - "klass" | "com.mx.InvalidClass" | "Invalid Class: com.mx.InvalidClass" + "klass" | "com.mx.InvalidClass" | "Invalid Class: com.mx.InvalidClass" - "zoneId" | "JNK" | "Invalid zoneId value: JNK" + "zoneId" | "JNK" | "Invalid zoneId value: JNK" } def "setFieldValue throws exception if field does not exist"() { diff --git a/common/src/test/groovy/com/mx/path/core/common/security/LogValueRegexTest.groovy b/common/src/test/groovy/com/mx/path/core/common/security/LogValueRegexTest.groovy index 6ca65eb9..78908fc9 100644 --- a/common/src/test/groovy/com/mx/path/core/common/security/LogValueRegexTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/security/LogValueRegexTest.groovy @@ -74,7 +74,7 @@ class LogValueRegexTest extends Specification { jsonElement.asString == expectedResult where: - fieldName || expectedResult + fieldName || expectedResult "test_number_field_1" || maskedString "test_number_field_2" || maskedString "test_number_field_3" || maskedString @@ -101,12 +101,12 @@ class LogValueRegexTest extends Specification { } where: - fieldName || expectedArraySize || expectedResult - "test_array_field_1" || 0 || "" - "test_array_field_2" || 0 || "" - "test_array_field_3" || 1 || maskedString - "test_array_field_4" || 1 || maskedString - "test_array_field_5" || 1 || maskedString - "test_array_field_6" || 1 || maskedString + fieldName || expectedArraySize || expectedResult + "test_array_field_1" || 0 || "" + "test_array_field_2" || 0 || "" + "test_array_field_3" || 1 || maskedString + "test_array_field_4" || 1 || maskedString + "test_array_field_5" || 1 || maskedString + "test_array_field_6" || 1 || maskedString } } diff --git a/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateDeserializerTest.groovy b/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateDeserializerTest.groovy index 81f18cc6..dbcb5d19 100644 --- a/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateDeserializerTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateDeserializerTest.groovy @@ -26,9 +26,9 @@ class LocalDateDeserializerTest extends Specification { result == expected where: - str || format || expected - "10/11/2000" || "M/d/yyyy" || LocalDate.of(2000, 10, 11) - "1/1/2000" || "M/d/yyyy" || LocalDate.of(2000, 1, 1) + str || format || expected + "10/11/2000" || "M/d/yyyy" || LocalDate.of(2000, 10, 11) + "1/1/2000" || "M/d/yyyy" || LocalDate.of(2000, 1, 1) } def "deserialize with multiple formats"() { @@ -102,8 +102,8 @@ class LocalDateDeserializerTest extends Specification { result == "{\"date\":\"${expected}\"}" where: - format || date || expected - "MM-dd-yyyy" || LocalDate.of(2000, 10, 11) || "10-11-2000" - "M-d-yyyy" || LocalDate.of(2000, 1, 1) || "1-1-2000" + format || date || expected + "MM-dd-yyyy" || LocalDate.of(2000, 10, 11) || "10-11-2000" + "M-d-yyyy" || LocalDate.of(2000, 1, 1) || "1-1-2000" } } diff --git a/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTimeDeserializerTest.groovy b/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTimeDeserializerTest.groovy index 917296d1..0937fe74 100644 --- a/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTimeDeserializerTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTimeDeserializerTest.groovy @@ -25,7 +25,7 @@ class LocalDateTimeDeserializerTest extends Specification { def result = subject.fromJson(json, ClassWithLocalDateTime) then: - verifyAll (result.localDateTime) { + verifyAll(result.localDateTime) { getYear() == 2022 getMonthValue() == 12 getDayOfMonth() == 6 @@ -51,7 +51,7 @@ class LocalDateTimeDeserializerTest extends Specification { def result = subject.fromJson(json, ClassWithLocalDateTime) then: - verifyAll (result.localDateTime) { + verifyAll(result.localDateTime) { getYear() == 2022 getMonthValue() == 12 getDayOfMonth() == 6 @@ -88,7 +88,7 @@ class LocalDateTimeDeserializerTest extends Specification { def result = subject.fromJson(json, ClassWithLocalDateTime) then: - verifyAll (result.localDateTime) { + verifyAll(result.localDateTime) { getYear() == 2022 getMonthValue() == 8 getDayOfMonth() == 12 diff --git a/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTimeTypeAdapterTest.groovy b/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTimeTypeAdapterTest.groovy index 30227a08..e3605519 100644 --- a/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTimeTypeAdapterTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTimeTypeAdapterTest.groovy @@ -26,7 +26,7 @@ class LocalDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithLocalDateTime) then: - verifyAll (result.localDateTime) { + verifyAll(result.localDateTime) { getYear() == 2022 getMonthValue() == 12 getDayOfMonth() == 6 @@ -52,7 +52,7 @@ class LocalDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithLocalDateTime) then: - verifyAll (result.localDateTime) { + verifyAll(result.localDateTime) { getYear() == 2022 getMonthValue() == 12 getDayOfMonth() == 6 @@ -107,7 +107,7 @@ class LocalDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithLocalDateTime) then: - verifyAll (result.localDateTime) { + verifyAll(result.localDateTime) { getYear() == 2022 getMonthValue() == 8 getDayOfMonth() == 12 @@ -180,7 +180,9 @@ class LocalDateTimeTypeAdapterTest extends Specification { def localDateTypeAdapter = new GsonBuilder().registerTypeAdapter(LocalDateTime.class, LocalDateTimeTypeAdapter.builder().build()).create() - def target = new ClassWithLocalDateTime().tap { it.localDateTime = LocalDateTime.of(2015, 10, 21, 4, 29, 0) } + def target = new ClassWithLocalDateTime().tap { + it.localDateTime = LocalDateTime.of(2015, 10, 21, 4, 29, 0) + } when: def serialized = localDateTypeAdapter.toJson(target) diff --git a/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTypeAdapterTest.groovy b/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTypeAdapterTest.groovy index 85834173..64217448 100644 --- a/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTypeAdapterTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/serialization/LocalDateTypeAdapterTest.groovy @@ -23,9 +23,9 @@ class LocalDateTypeAdapterTest extends Specification { result == expected where: - str || format || expected - "10/11/2000" || "M/d/yyyy" || LocalDate.of(2000, 10, 11) - "1/1/2000" || "M/d/yyyy" || LocalDate.of(2000, 1, 1) + str || format || expected + "10/11/2000" || "M/d/yyyy" || LocalDate.of(2000, 10, 11) + "1/1/2000" || "M/d/yyyy" || LocalDate.of(2000, 1, 1) } def "deserialize with multiple formats"() { @@ -99,15 +99,17 @@ class LocalDateTypeAdapterTest extends Specification { def gson = new GsonBuilder().registerTypeAdapter(LocalDate.class, LocalDateTypeAdapter.builder().serializeFormat(format).build()).create() when: - def result = gson.toJson(new ClassWithLocalDate().tap { it.localDate = date }) + def result = gson.toJson(new ClassWithLocalDate().tap { + it.localDate = date + }) then: result == "{\"localDate\":\"${expected}\"}" where: - format || date || expected - "MM-dd-yyyy" || LocalDate.of(2000, 10, 11) || "10-11-2000" - "M-d-yyyy" || LocalDate.of(2000, 1, 1) || "1-1-2000" + format || date || expected + "MM-dd-yyyy" || LocalDate.of(2000, 10, 11) || "10-11-2000" + "M-d-yyyy" || LocalDate.of(2000, 1, 1) || "1-1-2000" } def "LocalDateDeserializer compatibility"() { @@ -118,7 +120,9 @@ class LocalDateTypeAdapterTest extends Specification { def localDateTypeAdapter = new GsonBuilder().registerTypeAdapter(LocalDate.class, LocalDateTypeAdapter.builder().build()).create() - def target = new ClassWithLocalDate().tap { it.localDate = LocalDate.of(2023, 6, 11) } + def target = new ClassWithLocalDate().tap { + it.localDate = LocalDate.of(2023, 6, 11) + } when: def serialized = localDateTypeAdapter.toJson(target) diff --git a/common/src/test/groovy/com/mx/path/core/common/serialization/OffsetDateTimeTypeAdapterTest.groovy b/common/src/test/groovy/com/mx/path/core/common/serialization/OffsetDateTimeTypeAdapterTest.groovy index 7cd3d60c..79622f5e 100644 --- a/common/src/test/groovy/com/mx/path/core/common/serialization/OffsetDateTimeTypeAdapterTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/serialization/OffsetDateTimeTypeAdapterTest.groovy @@ -26,7 +26,7 @@ class OffsetDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithOffsetDateTime) then: - verifyAll (result.offsetDateTime) { + verifyAll(result.offsetDateTime) { getYear() == 2022 getMonthValue() == 12 getDayOfMonth() == 6 @@ -53,7 +53,7 @@ class OffsetDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithOffsetDateTime) then: - verifyAll (result.offsetDateTime) { + verifyAll(result.offsetDateTime) { getYear() == 2022 getMonthValue() == 12 getDayOfMonth() == 6 @@ -110,7 +110,7 @@ class OffsetDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithOffsetDateTime) then: - verifyAll (result.offsetDateTime) { + verifyAll(result.offsetDateTime) { getYear() == 2022 getMonthValue() == 8 getDayOfMonth() == 12 @@ -148,7 +148,7 @@ class OffsetDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithOffsetDateTime) then: - verifyAll (result.offsetDateTime) { + verifyAll(result.offsetDateTime) { getYear() == 2022 getMonthValue() == 8 getDayOfMonth() == 12 diff --git a/common/src/test/groovy/com/mx/path/core/common/serialization/ZonedDateTimeTypeAdapterTest.groovy b/common/src/test/groovy/com/mx/path/core/common/serialization/ZonedDateTimeTypeAdapterTest.groovy index e0221f62..279560bf 100644 --- a/common/src/test/groovy/com/mx/path/core/common/serialization/ZonedDateTimeTypeAdapterTest.groovy +++ b/common/src/test/groovy/com/mx/path/core/common/serialization/ZonedDateTimeTypeAdapterTest.groovy @@ -26,7 +26,7 @@ class ZonedDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithZonedDateTime) then: - verifyAll (result.zonedDateTime) { + verifyAll(result.zonedDateTime) { getYear() == 2022 getMonthValue() == 12 getDayOfMonth() == 6 @@ -53,7 +53,7 @@ class ZonedDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithZonedDateTime) then: - verifyAll (result.zonedDateTime) { + verifyAll(result.zonedDateTime) { getYear() == 2022 getMonthValue() == 12 getDayOfMonth() == 6 @@ -110,7 +110,7 @@ class ZonedDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithZonedDateTime) then: - verifyAll (result.zonedDateTime) { + verifyAll(result.zonedDateTime) { getYear() == 2022 getMonthValue() == 8 getDayOfMonth() == 12 @@ -150,7 +150,7 @@ class ZonedDateTimeTypeAdapterTest extends Specification { def result = subject.fromJson(json, ClassWithZonedDateTime) then: - verifyAll (result.zonedDateTime) { + verifyAll(result.zonedDateTime) { getYear() == 2022 getMonthValue() == 8 getDayOfMonth() == 12 diff --git a/common/src/test/groovy/com/mx/path/gateway/configuration/ConfigurationStateTest.groovy b/common/src/test/groovy/com/mx/path/gateway/configuration/ConfigurationStateTest.groovy index d1fb36c4..87ea234e 100644 --- a/common/src/test/groovy/com/mx/path/gateway/configuration/ConfigurationStateTest.groovy +++ b/common/src/test/groovy/com/mx/path/gateway/configuration/ConfigurationStateTest.groovy @@ -95,7 +95,9 @@ class ConfigurationStateTest extends Specification { def state = ConfigurationState.getCurrent() when: - def result = state.withField("port", { -> "8080" } as java.util.function.Supplier) + def result = state.withField("port", { + -> "8080" + } as java.util.function.Supplier) then: result == "8080" @@ -107,7 +109,9 @@ class ConfigurationStateTest extends Specification { def state = ConfigurationState.getCurrent() when: - state.withField("port", { -> throw new ConfigurationError("invalid", "port") } as java.util.function.Supplier) + state.withField("port", { + -> throw new ConfigurationError("invalid", "port") + } as java.util.function.Supplier) then: thrown(ConfigurationError) @@ -147,7 +151,9 @@ class ConfigurationStateTest extends Specification { def state = ConfigurationState.getCurrent() when: - def result = state.withLevel("client", { -> "done" } as java.util.function.Supplier) + def result = state.withLevel("client", { + -> "done" + } as java.util.function.Supplier) then: result == "done" @@ -159,7 +165,9 @@ class ConfigurationStateTest extends Specification { def state = ConfigurationState.getCurrent() when: - state.withLevel("client", { -> throw new ConfigurationError("oops", state) } as java.util.function.Supplier) + state.withLevel("client", { + -> throw new ConfigurationError("oops", state) + } as java.util.function.Supplier) then: thrown(ConfigurationError) diff --git a/context/gradle.lockfile b/context/gradle.lockfile index d72944bb..68234886 100644 --- a/context/gradle.lockfile +++ b/context/gradle.lockfile @@ -1,16 +1,16 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.13.2=pmd @@ -83,8 +83,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -97,7 +96,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.30=runtimeClasspath,testRuntimeClasspath diff --git a/context/src/test/groovy/com/mx/path/core/context/RequestContextTest.groovy b/context/src/test/groovy/com/mx/path/core/context/RequestContextTest.groovy index 6a622f80..40f195c9 100644 --- a/context/src/test/groovy/com/mx/path/core/context/RequestContextTest.groovy +++ b/context/src/test/groovy/com/mx/path/core/context/RequestContextTest.groovy @@ -42,7 +42,7 @@ class RequestContextTest extends Specification { .clientGuid("clientAF") .clientId("client1") .feature("featureA") - .header("h2" , "v2") + .header("h2", "v2") .originatingIP("127.0.0.1") .parameter("p2", "v2") .path("/accounts") diff --git a/context/src/test/groovy/com/mx/path/core/context/SessionTest.groovy b/context/src/test/groovy/com/mx/path/core/context/SessionTest.groovy index d4d05bc2..d552633b 100644 --- a/context/src/test/groovy/com/mx/path/core/context/SessionTest.groovy +++ b/context/src/test/groovy/com/mx/path/core/context/SessionTest.groovy @@ -384,7 +384,7 @@ class SessionTest extends Specification { when: subject.setEmail("test@unit.me") - assert "test@unit.me" == subject.getEmail() + assert "test@unit.me" == subject.getEmail() then: 1 * encryptionService.isEncrypted("encrypted:v1:(!ph3%") >> true diff --git a/context/src/test/groovy/com/mx/path/core/context/environment/EnvironmentTest.groovy b/context/src/test/groovy/com/mx/path/core/context/environment/EnvironmentTest.groovy index 86c8289f..9958d1e9 100644 --- a/context/src/test/groovy/com/mx/path/core/context/environment/EnvironmentTest.groovy +++ b/context/src/test/groovy/com/mx/path/core/context/environment/EnvironmentTest.groovy @@ -26,7 +26,7 @@ class EnvironmentTest extends Specification { given: def key = "MY_KEY" def defaultValue = "default value" - Environment.setDotenv( Mock(Dotenv)) + Environment.setDotenv(Mock(Dotenv)) Environment.dotenv().get(key, defaultValue) >> defaultValue when: diff --git a/context/src/test/groovy/com/mx/path/core/context/store/ScopedStoreCurrentUserTest.groovy b/context/src/test/groovy/com/mx/path/core/context/store/ScopedStoreCurrentUserTest.groovy index eaba09b7..e3940b85 100644 --- a/context/src/test/groovy/com/mx/path/core/context/store/ScopedStoreCurrentUserTest.groovy +++ b/context/src/test/groovy/com/mx/path/core/context/store/ScopedStoreCurrentUserTest.groovy @@ -9,7 +9,7 @@ import com.mx.testing.WithSessionRepository import spock.lang.Specification -class ScopedStoreCurrentUserTest extends Specification implements WithMockery, WithSessionRepository { +class ScopedStoreCurrentUserTest extends Specification implements WithMockery, WithSessionRepository { Store store ScopedStoreCurrentUser subject diff --git a/context/src/test/groovy/com/mx/path/core/context/store/ScopedStoreUserTest.groovy b/context/src/test/groovy/com/mx/path/core/context/store/ScopedStoreUserTest.groovy index 23c359af..0799fe7e 100644 --- a/context/src/test/groovy/com/mx/path/core/context/store/ScopedStoreUserTest.groovy +++ b/context/src/test/groovy/com/mx/path/core/context/store/ScopedStoreUserTest.groovy @@ -9,7 +9,7 @@ import com.mx.testing.WithSessionRepository import spock.lang.Specification -class ScopedStoreUserTest extends Specification implements WithMockery, WithSessionRepository { +class ScopedStoreUserTest extends Specification implements WithMockery, WithSessionRepository { Store store ScopedStoreUser subject diff --git a/context/src/test/groovy/com/mx/path/core/context/store/StoreLockTest.groovy b/context/src/test/groovy/com/mx/path/core/context/store/StoreLockTest.groovy index 108251eb..315f95b3 100644 --- a/context/src/test/groovy/com/mx/path/core/context/store/StoreLockTest.groovy +++ b/context/src/test/groovy/com/mx/path/core/context/store/StoreLockTest.groovy @@ -157,7 +157,9 @@ class StoreLockTest extends Specification implements WithMockery { mutex.setAcquireTimeoutMilliseconds(1000) def acquiringThread = new Thread({ -> - lockState = mutex.acquireOr({ -> Objects.equals(store.get("waitForIt"), "done") }) + lockState = mutex.acquireOr({ + -> Objects.equals(store.get("waitForIt"), "done") + }) }) acquiringThread.start() Thread.sleep(50) diff --git a/gateway-generator/gradle.lockfile b/gateway-generator/gradle.lockfile index bc8ef2e1..78080da9 100644 --- a/gateway-generator/gradle.lockfile +++ b/gateway-generator/gradle.lockfile @@ -1,17 +1,17 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.datadoghq:dd-trace-api:1.38.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.auto.service:auto-service-annotations:1.1.1=annotationProcessor,compileClasspath com.google.auto.service:auto-service:1.1.1=annotationProcessor,compileClasspath @@ -103,8 +103,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -117,7 +116,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle,runtimeClasspath,testRuntimeClasspath org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.32=runtimeClasspath,testRuntimeClasspath diff --git a/gateway/gradle.lockfile b/gateway/gradle.lockfile index fb8422e5..77edb649 100644 --- a/gateway/gradle.lockfile +++ b/gateway/gradle.lockfile @@ -1,17 +1,17 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.datadoghq:dd-trace-api:1.38.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.13.2=pmd @@ -97,8 +97,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -111,7 +110,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.32=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath diff --git a/gateway/src/test/groovy/com/mx/path/gateway/GatewayTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/GatewayTest.groovy index 01d66c5e..a3452bb9 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/GatewayTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/GatewayTest.groovy @@ -225,7 +225,7 @@ class GatewayTest extends Specification { def "describe() throws when baseAccessor is null on non-root gateway"() { given: - def gateway = new MinimalGateway() // no-arg constructor, baseAccessor is null + def gateway = new MinimalGateway() // no-arg constructor, baseAccessor is null when: gateway.describe() diff --git a/gateway/src/test/groovy/com/mx/path/gateway/accessor/AccessorConfigurationTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/accessor/AccessorConfigurationTest.groovy index f59f34fc..35d0046a 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/accessor/AccessorConfigurationTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/accessor/AccessorConfigurationTest.groovy @@ -30,7 +30,7 @@ class AccessorConfigurationTest extends Specification { .configuration("name", "value") .build() when: - def description = new ObjectMap() + def description = new ObjectMap() subject.describe(description) then: diff --git a/gateway/src/test/groovy/com/mx/path/gateway/configuration/AccessorStackConfiguratorTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/configuration/AccessorStackConfiguratorTest.groovy index e8903514..34c1126f 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/configuration/AccessorStackConfiguratorTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/configuration/AccessorStackConfiguratorTest.groovy @@ -62,7 +62,9 @@ class AccessorStackConfiguratorTest extends Specification { then: mockAccessor.verify({ MockAccessor.afterInitialize() }, times(1)) - mockAccessor.verify({ MockAccessor.afterInitializeWithClientId("clientId") }, times(1)) + mockAccessor.verify({ + MockAccessor.afterInitializeWithClientId("clientId") + }, times(1)) } def "invoke both afterInitializeMethods"() { @@ -73,9 +75,15 @@ class AccessorStackConfiguratorTest extends Specification { then: mockAccessor.verify({ MockAccessor.afterInitialize() }, times(1)) - childMockAccessor.verify({ ChildMockAccessor.afterInitializeChild() }, times(1)) - - mockAccessor.verify({ MockAccessor.afterInitializeWithClientId("clientId") }, times(1)) - childMockAccessor.verify({ ChildMockAccessor.afterInitializeChildWithClientId("clientId") }, times(1)) + childMockAccessor.verify({ + ChildMockAccessor.afterInitializeChild() + }, times(1)) + + mockAccessor.verify({ + MockAccessor.afterInitializeWithClientId("clientId") + }, times(1)) + childMockAccessor.verify({ + ChildMockAccessor.afterInitializeChildWithClientId("clientId") + }, times(1)) } } diff --git a/gateway/src/test/groovy/com/mx/path/gateway/configuration/ConfigurationBinderTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/configuration/ConfigurationBinderTest.groovy index e99bcfd8..6d25a06f 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/configuration/ConfigurationBinderTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/configuration/ConfigurationBinderTest.groovy @@ -40,7 +40,7 @@ class ConfigurationBinderTest extends Specification { subject.configure(configurationObj, configuration) then: - verifyAll (configurationObj) { + verifyAll(configurationObj) { getKey1() == "value1" getKey2() == 12 initialized @@ -52,7 +52,7 @@ class ConfigurationBinderTest extends Specification { subject.configure(configurationObj, null) then: "takes defaults" - verifyAll (configurationObj) { + verifyAll(configurationObj) { getKey1() == null getKey2() == null initialized @@ -69,7 +69,7 @@ class ConfigurationBinderTest extends Specification { BasicConfigurationObj configurationObj = subject.build(BasicConfigurationObj.class, configuration) then: - verifyAll (configurationObj) { + verifyAll(configurationObj) { getClientId() == "client1" getKey1() == "value1" getKey2() == 12 @@ -81,7 +81,7 @@ class ConfigurationBinderTest extends Specification { configurationObj = subject.build(BasicConfigurationObj.class, null) then: "takes defaults" - verifyAll (configurationObj) { + verifyAll(configurationObj) { getKey1() == null getKey2() == null initialized diff --git a/gateway/src/test/groovy/com/mx/path/gateway/configuration/ConnectionBinderTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/configuration/ConnectionBinderTest.groovy index d819fbdc..8fe16e15 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/configuration/ConnectionBinderTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/configuration/ConnectionBinderTest.groovy @@ -39,7 +39,7 @@ class ConnectionBinderTest extends Specification { def connection = (ConnectionWithBoundConfiguration) subject.build(ConnectionWithBoundConfiguration.class, configuration, "TestConnection") then: - verifyAll (connection) { + verifyAll(connection) { baseUrl == "url" certificateAlias == "alias" keystorePath == "path" @@ -90,7 +90,7 @@ class ConnectionBinderTest extends Specification { def connection = subject.buildConnection(configuration, "TestConnection") then: - verifyAll (connection) { + verifyAll(connection) { baseUrl == "url" certificateAlias == "alias" keystorePath == "path" diff --git a/gateway/src/test/groovy/com/mx/path/gateway/configuration/GatewayObjectConfiguratorTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/configuration/GatewayObjectConfiguratorTest.groovy index 9c8dff85..ca6fe934 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/configuration/GatewayObjectConfiguratorTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/configuration/GatewayObjectConfiguratorTest.groovy @@ -95,7 +95,7 @@ class GatewayObjectConfiguratorTest extends Specification { connectionWithBoundConfiguration behaviorConfiguration.active initialized - verifyAll (connectionWithBoundConfiguration) { + verifyAll(connectionWithBoundConfiguration) { baseUrl == "url" certificateAlias == "alias" keystorePath == "path" diff --git a/gateway/src/test/groovy/com/mx/path/gateway/context/GatewayRequestContextTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/context/GatewayRequestContextTest.groovy index 30a3746e..57a23000 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/context/GatewayRequestContextTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/context/GatewayRequestContextTest.groovy @@ -94,7 +94,7 @@ class GatewayRequestContextTest extends Specification { .clientGuid("clientAF") .clientId("client1") .feature("featureA") - .header("h2" , "v2") + .header("h2", "v2") .originatingIP("127.0.0.1") .parameter("p2", "v2") .path("/accounts") diff --git a/gateway/src/test/groovy/com/mx/path/gateway/event/UpstreamRequestLoggingEventListenerTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/event/UpstreamRequestLoggingEventListenerTest.groovy index 5d1d23cd..df74cbd5 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/event/UpstreamRequestLoggingEventListenerTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/event/UpstreamRequestLoggingEventListenerTest.groovy @@ -41,7 +41,7 @@ class UpstreamRequestLoggingEventListenerTest extends Specification { def response = null def requestContext = AfterUpstreamRequestEvent.builder().build().requestContext def session = AfterUpstreamRequestEvent.builder().build().session - def afterUpstreamEvent = spy(new AfterUpstreamRequestEvent(response, requestContext, session)) + def afterUpstreamEvent = spy(new AfterUpstreamRequestEvent(response, requestContext, session)) when: subject.onAfterUpstreamRequestEvent(afterUpstreamEvent) diff --git a/gateway/src/test/groovy/com/mx/path/gateway/process/AsyncWithGatewayContextTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/process/AsyncWithGatewayContextTest.groovy index 6bfaba59..cc2b63ae 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/process/AsyncWithGatewayContextTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/process/AsyncWithGatewayContextTest.groovy @@ -33,7 +33,9 @@ class AsyncWithGatewayContextTest extends Specification { def "calls the supplied lambda"() { given: - AsyncWithGatewayContext subject = new AsyncWithGatewayContext({ -> "Wakarimasu ka?" }) + AsyncWithGatewayContext subject = new AsyncWithGatewayContext({ + -> "Wakarimasu ka?" + }) when: def result = subject.execute() @@ -44,7 +46,9 @@ class AsyncWithGatewayContextTest extends Specification { def "returns a Future when submitted to an executor service"() { given: - AsyncWithGatewayContext subject = new AsyncWithGatewayContext({ -> "Kinjiru!" }) + AsyncWithGatewayContext subject = new AsyncWithGatewayContext({ + -> "Kinjiru!" + }) def executorService = Executors.newSingleThreadExecutor() when: diff --git a/gateway/src/test/groovy/com/mx/path/gateway/process/GatewayFutureTest.groovy b/gateway/src/test/groovy/com/mx/path/gateway/process/GatewayFutureTest.groovy index f4ee9135..3bccab5f 100644 --- a/gateway/src/test/groovy/com/mx/path/gateway/process/GatewayFutureTest.groovy +++ b/gateway/src/test/groovy/com/mx/path/gateway/process/GatewayFutureTest.groovy @@ -77,7 +77,9 @@ class FutureWithGatewayContextTest extends Specification { def "can pass custom executor and timeout"() { given: def executorService = Executors.newSingleThreadExecutor() - def subject = new FutureWithGatewayContext({ -> "Feijoada!" }, executorService, 5000L) + def subject = new FutureWithGatewayContext({ + -> "Feijoada!" + }, executorService, 5000L) when: def result = subject.get() @@ -88,7 +90,9 @@ class FutureWithGatewayContextTest extends Specification { def "wraps ExecutionException in GatewayException"() { given: - def subject = new FutureWithGatewayContext({ -> throw new RuntimeException("boom") }) + def subject = new FutureWithGatewayContext({ + -> throw new RuntimeException("boom") + }) when: subject.get() diff --git a/http/gradle.lockfile b/http/gradle.lockfile index 75d86422..f0ca7c73 100644 --- a/http/gradle.lockfile +++ b/http/gradle.lockfile @@ -1,17 +1,17 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.datadoghq:dd-trace-api:1.38.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.13.2=pmd @@ -97,8 +97,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -111,7 +110,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle,runtimeClasspath,testRuntimeClasspath org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.30=compileClasspath,testCompileClasspath diff --git a/http/src/test/groovy/com/mx/path/api/connect/http/HttpAccessorConnectionTest.groovy b/http/src/test/groovy/com/mx/path/api/connect/http/HttpAccessorConnectionTest.groovy index 30075707..e0ef0b7c 100644 --- a/http/src/test/groovy/com/mx/path/api/connect/http/HttpAccessorConnectionTest.groovy +++ b/http/src/test/groovy/com/mx/path/api/connect/http/HttpAccessorConnectionTest.groovy @@ -74,26 +74,26 @@ class HttpAccessorConnectionTest extends Specification { where: enumeration | name - Feature.ACCOUNTS | "accounts" - Feature.ACH_TRANSFERS | "ach_transfers" - Feature.AUTHORIZATIONS | "authorizations" - Feature.CHECK_IMAGES | "check_images" - Feature.CREDIT_REPORTS | "credit_reports" - Feature.CROSS_ACCOUNT_TRANSFERS | "cross_account_transfers" - Feature.DOCUMENTS | "documents" - Feature.IDENTITY | "identity" - Feature.LOCATION | "location" - Feature.MANAGED_CARDS | "managed_cards" - Feature.ORIGINATIONS | "originations" - Feature.P2P_TRANSFERS | "p2p_transfers" - Feature.PAYMENTS | "payments" - Feature.PAYOUTS | "payouts" - Feature.PRODUCTS | "products" - Feature.PROFILES | "profiles" - Feature.REMOTE_DEPOSITS | "remote_deposits" - Feature.STATUS | "status" - Feature.TRANSACTIONS | "transactions" - Feature.TRANSFERS | "transfers" + Feature.ACCOUNTS | "accounts" + Feature.ACH_TRANSFERS | "ach_transfers" + Feature.AUTHORIZATIONS | "authorizations" + Feature.CHECK_IMAGES | "check_images" + Feature.CREDIT_REPORTS | "credit_reports" + Feature.CROSS_ACCOUNT_TRANSFERS | "cross_account_transfers" + Feature.DOCUMENTS | "documents" + Feature.IDENTITY | "identity" + Feature.LOCATION | "location" + Feature.MANAGED_CARDS | "managed_cards" + Feature.ORIGINATIONS | "originations" + Feature.P2P_TRANSFERS | "p2p_transfers" + Feature.PAYMENTS | "payments" + Feature.PAYOUTS | "payouts" + Feature.PRODUCTS | "products" + Feature.PROFILES | "profiles" + Feature.REMOTE_DEPOSITS | "remote_deposits" + Feature.STATUS | "status" + Feature.TRANSACTIONS | "transactions" + Feature.TRANSFERS | "transfers" } def "delete"() { diff --git a/http/src/test/groovy/com/mx/path/api/connect/http/HttpClientFilterTest.groovy b/http/src/test/groovy/com/mx/path/api/connect/http/HttpClientFilterTest.groovy index c483b51e..b57ddf7f 100644 --- a/http/src/test/groovy/com/mx/path/api/connect/http/HttpClientFilterTest.groovy +++ b/http/src/test/groovy/com/mx/path/api/connect/http/HttpClientFilterTest.groovy @@ -102,17 +102,17 @@ class HttpClientFilterTest extends Specification { where: rawBodyShouldBeReturned || contentTypeHeaders - true || makeContentTypeHeaders("application/pdf") - true || makeContentTypeHeaders("image/png") - true || makeContentTypeHeaders("IMAGE/JPEG") - true || makeContentTypeHeaders("Image/gif") - true || makeContentTypeHeaders("image/svg+xml") - true || makeContentTypeHeaders("image/tiff") - true || makeContentTypeHeaders("application/msword") - false || makeContentTypeHeaders("application/json") - false || makeContentTypeHeaders("text/html") - false || makeContentTypeHeaders("application/xml") - false || makeContentTypeHeaders() + true || makeContentTypeHeaders("application/pdf") + true || makeContentTypeHeaders("image/png") + true || makeContentTypeHeaders("IMAGE/JPEG") + true || makeContentTypeHeaders("Image/gif") + true || makeContentTypeHeaders("image/svg+xml") + true || makeContentTypeHeaders("image/tiff") + true || makeContentTypeHeaders("application/msword") + false || makeContentTypeHeaders("application/json") + false || makeContentTypeHeaders("text/html") + false || makeContentTypeHeaders("application/xml") + false || makeContentTypeHeaders() } def "test connect exception handling in execute method"() { diff --git a/http/src/test/groovy/com/mx/path/api/connect/http/HttpRequestTest.groovy b/http/src/test/groovy/com/mx/path/api/connect/http/HttpRequestTest.groovy index 00cce88a..31ec88b0 100644 --- a/http/src/test/groovy/com/mx/path/api/connect/http/HttpRequestTest.groovy +++ b/http/src/test/groovy/com/mx/path/api/connect/http/HttpRequestTest.groovy @@ -42,7 +42,7 @@ class HttpRequestTest extends Specification { when: subject.put() - then:"sets method and executes" + then: "sets method and executes" subject.getMethod() == "PUT" verify(filterChain).execute(any(HttpRequest), any(HttpResponse)) } @@ -51,7 +51,7 @@ class HttpRequestTest extends Specification { when: subject.delete() - then:"sets method and executes" + then: "sets method and executes" subject.getMethod() == "DELETE" verify(filterChain).execute(any(HttpRequest), any(HttpResponse)) } @@ -60,7 +60,7 @@ class HttpRequestTest extends Specification { when: subject.patch() - then:"sets method and executes" + then: "sets method and executes" subject.getMethod() == "PATCH" verify(filterChain).execute(any(HttpRequest), any(HttpResponse)) } @@ -69,7 +69,7 @@ class HttpRequestTest extends Specification { when: subject.post() - then:"sets method and executes" + then: "sets method and executes" subject.getMethod() == "POST" verify(filterChain).execute(any(HttpRequest), any(HttpResponse)) } diff --git a/messaging/gradle.lockfile b/messaging/gradle.lockfile index 241853d9..057896b1 100644 --- a/messaging/gradle.lockfile +++ b/messaging/gradle.lockfile @@ -1,16 +1,16 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.13.2=pmd @@ -84,8 +84,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -98,7 +97,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.30=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath diff --git a/messaging/src/test/groovy/com/mx/path/connect/messaging/MessageRequestTest.groovy b/messaging/src/test/groovy/com/mx/path/connect/messaging/MessageRequestTest.groovy index da1abf13..5708a343 100644 --- a/messaging/src/test/groovy/com/mx/path/connect/messaging/MessageRequestTest.groovy +++ b/messaging/src/test/groovy/com/mx/path/connect/messaging/MessageRequestTest.groovy @@ -144,6 +144,6 @@ class MessageRequestTest extends Specification { def duration = subject.getDuration() then: - duration > 9 + duration> 9 } } diff --git a/messaging/src/test/groovy/com/mx/path/connect/messaging/remote/RemoteRequesterTest.groovy b/messaging/src/test/groovy/com/mx/path/connect/messaging/remote/RemoteRequesterTest.groovy index 6dd59fd5..af268885 100644 --- a/messaging/src/test/groovy/com/mx/path/connect/messaging/remote/RemoteRequesterTest.groovy +++ b/messaging/src/test/groovy/com/mx/path/connect/messaging/remote/RemoteRequesterTest.groovy @@ -177,7 +177,9 @@ class RemoteRequesterTest extends Specification { .build() when: - def response = subject.withSession(message, { MessageRequest request -> MessageResponse.builder().build() }) + def response = subject.withSession(message, { MessageRequest request -> + MessageResponse.builder().build() + }) then: response != null diff --git a/test-gateway-generator/gradle.lockfile b/test-gateway-generator/gradle.lockfile index e440a4e3..94dcd369 100644 --- a/test-gateway-generator/gradle.lockfile +++ b/test-gateway-generator/gradle.lockfile @@ -1,16 +1,16 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.datadoghq:dd-trace-api:1.38.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.14.0=compileClasspath,runtimeClasspath,spotbugs,testCompileClasspath,testRuntimeClasspath @@ -64,8 +64,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -76,7 +75,7 @@ org.ow2.asm:asm-tree:9.9=jacocoAnt org.ow2.asm:asm-util:9.10.1=spotbugs org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=runtimeClasspath,testRuntimeClasspath org.slf4j:slf4j-api:1.7.32=runtimeClasspath,testRuntimeClasspath org.slf4j:slf4j-api:2.0.17=spotbugsSlf4j diff --git a/test-gateways/gradle.lockfile b/test-gateways/gradle.lockfile index 6af6a6bf..7512b1d5 100644 --- a/test-gateways/gradle.lockfile +++ b/test-gateways/gradle.lockfile @@ -1,17 +1,17 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.datadoghq:dd-trace-api:1.38.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=annotationProcessor,runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=annotationProcessor,runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=annotationProcessor,runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=annotationProcessor,runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.13.2=pmd @@ -97,8 +97,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=annotationProcessor,runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -111,7 +110,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=annotationProcessor,checkstyle,runtimeClasspath,testRuntimeClasspath org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.32=annotationProcessor,runtimeClasspath,testRuntimeClasspath diff --git a/test-gateways/src/test/groovy/com/mx/gateway/SingletonBaseAccessorProxyTest.groovy b/test-gateways/src/test/groovy/com/mx/gateway/SingletonBaseAccessorProxyTest.groovy index 5cd5cc5f..d7807eb1 100644 --- a/test-gateways/src/test/groovy/com/mx/gateway/SingletonBaseAccessorProxyTest.groovy +++ b/test-gateways/src/test/groovy/com/mx/gateway/SingletonBaseAccessorProxyTest.groovy @@ -40,6 +40,6 @@ class SingletonBaseAccessorProxyTest extends Specification { then: org.mockito.Mockito.verify(accessorInstance).accounts() || true - org.mockito.Mockito.verify(accessorInstance).id() || true + org.mockito.Mockito.verify(accessorInstance).id() || true } } diff --git a/test-models/gradle.lockfile b/test-models/gradle.lockfile index fe424148..c04c3ddb 100644 --- a/test-models/gradle.lockfile +++ b/test-models/gradle.lockfile @@ -1,17 +1,17 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.datadoghq:dd-trace-api:1.38.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.13.2=pmd @@ -96,8 +96,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -110,7 +109,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle,runtimeClasspath,testRuntimeClasspath org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.32=runtimeClasspath,testRuntimeClasspath diff --git a/testing/gradle.lockfile b/testing/gradle.lockfile index fb7e874b..841cd17c 100644 --- a/testing/gradle.lockfile +++ b/testing/gradle.lockfile @@ -1,17 +1,17 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.datadoghq:dd-trace-api:1.38.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.rholder:guava-retrying:2.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,runtimeClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath,testRuntimeClasspath com.google.code.gson:gson:2.13.2=pmd @@ -97,8 +97,7 @@ org.junit.platform:junit-platform-engine:1.14.1=compileClasspath,runtimeClasspat org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=runtimeClasspath,testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -111,7 +110,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle,runtimeClasspath,testRuntimeClasspath org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:1.7.32=runtimeClasspath,testRuntimeClasspath diff --git a/testing/src/test/groovy/com/mx/path/testing/request/RequestMatcherTest.groovy b/testing/src/test/groovy/com/mx/path/testing/request/RequestMatcherTest.groovy index 731360f7..c4591e2a 100644 --- a/testing/src/test/groovy/com/mx/path/testing/request/RequestMatcherTest.groovy +++ b/testing/src/test/groovy/com/mx/path/testing/request/RequestMatcherTest.groovy @@ -57,7 +57,9 @@ class RequestMatcherTest extends Specification { def "with uses provided function matcher"() { given: - def matcher = new RequestMatcher().with({ req -> req.getPath() == "accounts" } as java.util.function.Function) + def matcher = new RequestMatcher().with({ req -> + req.getPath() == "accounts" + } as java.util.function.Function) expect: matcher.isMatch(makeRequest("accounts")) @@ -66,7 +68,9 @@ class RequestMatcherTest extends Specification { def "withMatcher uses provided function matcher"() { given: - def matcher = new RequestMatcher().withMatcher({ req -> req.getMethod() == "DELETE" } as java.util.function.Function) + def matcher = new RequestMatcher().withMatcher({ req -> + req.getMethod() == "DELETE" + } as java.util.function.Function) expect: matcher.isMatch(makeRequest("any", "DELETE")) @@ -75,7 +79,9 @@ class RequestMatcherTest extends Specification { def "Fluent.with uses provided function"() { given: - def matcher = RequestMatcher.Fluent.with({ req -> req.getPath() == "accounts" } as java.util.function.Function) + def matcher = RequestMatcher.Fluent.with({ req -> + req.getPath() == "accounts" + } as java.util.function.Function) expect: matcher.isMatch(makeRequest("accounts")) diff --git a/utilities/build.gradle b/utilities/build.gradle index e3ed9106..856410ba 100644 --- a/utilities/build.gradle +++ b/utilities/build.gradle @@ -6,4 +6,14 @@ coppuccino { dependencies { api("com.auth0:java-jwt:[4.5.2, 5.0.0)") + + constraints { + // Transitive dependency of com.auth0:java-jwt:4.6.1 + api("com.fasterxml.jackson.core:jackson-core:2.22.3") { + because "Fixes High Severity vulnerabilities" + } + api("com.fasterxml.jackson.core:jackson-databind:2.22.3") { + because "Fixes High Severity vulnerabilities" + } + } } diff --git a/utilities/gradle.lockfile b/utilities/gradle.lockfile index 7f029a04..bb70e356 100644 --- a/utilities/gradle.lockfile +++ b/utilities/gradle.lockfile @@ -1,15 +1,15 @@ # This is a Gradle generated file for dependency locking. # Manual edits can break the build and are not advised. # This file is expected to be part of source control. -com.auth0:java-jwt:4.6.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath +com.auth0:java-jwt:4.6.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath com.fasterxml.jackson.core:jackson-annotations:2.22=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-core:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson.core:jackson-databind:2.22.0=runtimeClasspath,testRuntimeClasspath -com.fasterxml.jackson:jackson-bom:2.22.0=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-core:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson.core:jackson-databind:2.22.3=runtimeClasspath,testRuntimeClasspath +com.fasterxml.jackson:jackson-bom:2.22.3=runtimeClasspath,testRuntimeClasspath com.github.oowekyala.ooxml:nice-xml-messages:3.1=pmd com.github.spotbugs:spotbugs-annotations:4.10.2=annotationProcessor,testAnnotationProcessor -com.github.spotbugs:spotbugs-annotations:4.10.3=compileClasspath,spotbugs,testCompileClasspath -com.github.spotbugs:spotbugs:4.10.3=spotbugs +com.github.spotbugs:spotbugs-annotations:4.10.4=compileClasspath,spotbugs,testCompileClasspath +com.github.spotbugs:spotbugs:4.10.4=spotbugs com.github.stephenc.jcip:jcip-annotations:1.0-1=spotbugs com.google.code.findbugs:jsr305:3.0.2=annotationProcessor,checkstyle,compileClasspath,spotbugs,testAnnotationProcessor,testCompileClasspath com.google.code.gson:gson:2.13.2=pmd @@ -74,8 +74,7 @@ org.junit.platform:junit-platform-engine:1.14.1=testCompileClasspath,testRuntime org.junit.platform:junit-platform-launcher:1.14.1=testRuntimeClasspath org.junit:junit-bom:5.14.1=testCompileClasspath,testRuntimeClasspath org.junit:junit-bom:6.1.0=annotationProcessor,testAnnotationProcessor -org.junit:junit-bom:6.1.2=spotbugs -org.mockito:mockito-core:5.23.0=testCompileClasspath,testRuntimeClasspath +org.mockito:mockito-core:5.24.0=testCompileClasspath,testRuntimeClasspath org.objenesis:objenesis:3.3=testRuntimeClasspath org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath org.ow2.asm:asm-analysis:9.10.1=spotbugs @@ -88,7 +87,7 @@ org.ow2.asm:asm:9.10.1=spotbugs org.ow2.asm:asm:9.9=jacocoAnt org.ow2.asm:asm:9.9.1=pmd org.pcollections:pcollections:4.0.2=pmd -org.projectlombok:lombok:1.18.44=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath +org.projectlombok:lombok:1.18.48=annotationProcessor,compileClasspath,lombok,testAnnotationProcessor,testCompileClasspath org.reflections:reflections:0.10.2=checkstyle org.slf4j:jul-to-slf4j:1.7.36=pmd org.slf4j:slf4j-api:2.0.17=spotbugsSlf4j diff --git a/utilities/src/test/groovy/com/mx/path/core/utility/jwt/JWTUtilityTest.groovy b/utilities/src/test/groovy/com/mx/path/core/utility/jwt/JWTUtilityTest.groovy index cfad9742..a560bf49 100644 --- a/utilities/src/test/groovy/com/mx/path/core/utility/jwt/JWTUtilityTest.groovy +++ b/utilities/src/test/groovy/com/mx/path/core/utility/jwt/JWTUtilityTest.groovy @@ -6,7 +6,7 @@ import java.time.ZonedDateTime import spock.lang.Specification -class JWTUtilityTest extends Specification { +class JWTUtilityTest extends Specification { def "fun test create JWT method"(){ when: diff --git a/utilities/src/test/groovy/com/mx/path/core/utility/oauth/OAuthUtilityTest.groovy b/utilities/src/test/groovy/com/mx/path/core/utility/oauth/OAuthUtilityTest.groovy index 6c9f8110..3d613e15 100644 --- a/utilities/src/test/groovy/com/mx/path/core/utility/oauth/OAuthUtilityTest.groovy +++ b/utilities/src/test/groovy/com/mx/path/core/utility/oauth/OAuthUtilityTest.groovy @@ -2,7 +2,7 @@ package com.mx.path.core.utility.oauth import spock.lang.Specification -class OAuthUtilityTest extends Specification { +class OAuthUtilityTest extends Specification { def "test generate Basic AuthorizationToken "(){ /*** everything valid scenario ***/ when: