From 4215789defac5a8a71ab03d6442661febac22bad Mon Sep 17 00:00:00 2001 From: Arho Huttunen Date: Mon, 16 Mar 2020 19:45:37 +0200 Subject: [PATCH] fix: @PactBroker not reading Spring properties with JUnit 5 #1023 --- .../dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/pact-jvm-provider-junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt b/provider/pact-jvm-provider-junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt index e9edd8d1b8..038baef765 100644 --- a/provider/pact-jvm-provider-junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt +++ b/provider/pact-jvm-provider-junit5/src/main/kotlin/au/com/dius/pact/provider/junit5/PactJUnit5VerificationProvider.kt @@ -392,11 +392,11 @@ open class PactVerificationInvocationContextProvider : TestTemplateInvocationCon logger.debug { "Verifying pacts for provider '$serviceName' and consumer '$consumerName'" } val pactSources = findPactSources(context).flatMap { - description += "\nSource: ${it.description()}" val valueResolver = getValueResolver(context) if (valueResolver != null) { it.setValueResolver(valueResolver) } + description += "\nSource: ${it.description()}" val pacts = it.load(serviceName) filterPactsByAnnotations(pacts, context.requiredTestClass).map { pact -> pact to it.pactSource } }.filter { p -> consumerName == null || p.first.consumer.name == consumerName }