diff --git a/core/pactbroker/src/test/groovy/au/com/dius/pact/core/pactbroker/PactBrokerClientSpec.groovy b/core/pactbroker/src/test/groovy/au/com/dius/pact/core/pactbroker/PactBrokerClientSpec.groovy index 9c768b557c..08717f8e67 100644 --- a/core/pactbroker/src/test/groovy/au/com/dius/pact/core/pactbroker/PactBrokerClientSpec.groovy +++ b/core/pactbroker/src/test/groovy/au/com/dius/pact/core/pactbroker/PactBrokerClientSpec.groovy @@ -606,7 +606,8 @@ class PactBrokerClientSpec extends Specification { then: 1 * halClient.navigate() >> { - throw new InvalidNavigationRequest('PKIX path building failed', new SSLHandshakeException('PKIX path building failed')) + throw new InvalidNavigationRequest('PKIX path building failed', + new SSLHandshakeException('PKIX path building failed')) } notThrown(SSLHandshakeException) result instanceof Err diff --git a/provider/junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt b/provider/junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt index e9f1ddedcb..3c65dd8a0b 100644 --- a/provider/junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt +++ b/provider/junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt @@ -79,8 +79,8 @@ open class PactVerificationInvocationContextProvider : TestTemplateInvocationCon val pacts = handleWith> { loader.load(serviceName) }.getOrElse { val ignoreAnnotation = AnnotationSupport.findAnnotation(context.requiredTestClass, IgnoreNoPactsToVerify::class.java) if (ignoreAnnotation.isPresent && - (valueResolver != null && valueResolver.resolveValue(ignoreAnnotation.get().ignoreIoErrors) == "true") || - ignoreAnnotation.get().ignoreIoErrors == "true") { + ((valueResolver != null && valueResolver.resolveValue(ignoreAnnotation.get().ignoreIoErrors) == "true") || + ignoreAnnotation.get().ignoreIoErrors == "true")) { emptyList() } else { throw it