Skip to content

Commit

Permalink
Merge pull request #1051 from arhohuttunen/fix-1023
Browse files Browse the repository at this point in the history
fix: @PactBroker not reading Spring properties with JUnit 5 #1023
  • Loading branch information
Ronald Holshausen authored Mar 21, 2020
2 parents adae5bb + 4215789 commit 049ac1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 049ac1f

Please sign in to comment.