You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if you create a custom annotation for your tests you have to pass PactSource annotation at the test-class level, instead of your annotation, or the exception will be thrown:
At least one pact source must be present on the test class
java.lang.UnsupportedOperationException: At least one pact source must be present on the test class
at au.com.dius.pact.provider.junit5.PactVerificationInvocationContextProvider.findPactSources(PactJUnit5VerificationProvider.kt:505)
at au.com.dius.pact.provider.junit5.PactVerificationInvocationContextProvider.resolvePactSources(PactJUnit5VerificationProvider.kt:459)
at au.com.dius.pact.provider.junit5.PactVerificationInvocationContextProvider.provideTestTemplateInvocationContexts(PactJUnit5VerificationProvider.kt:426)
at org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor.lambda$execute$0(TestTemplateTestDescriptor.java:102)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
PactSource at custom annotation level
Right now, if you create a custom annotation for your tests you have to pass
PactSource
annotation at the test-class level, instead of your annotation, or the exception will be thrown:Current behavior:
Expected behaviour
Please fix PactSource annotation processing, so the PactSource can be passed in the custom annotation
The text was updated successfully, but these errors were encountered: