Paul Sobocinski
02/24/2025, 7:00 PMprovider.getUrl() is returning null, which in turn causes the test to fail before the ConsumerClient is even invoked.
I have it set up the test and example its own repo here. The full error message I'm getting follows:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running exampleclients.ExampleJavaConsumerPactRuleTest
Provider URL: null
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.027 s <<< FAILURE! - in exampleclients.ExampleJavaConsumerPactRuleTest
[ERROR] runTest(exampleclients.ExampleJavaConsumerPactRuleTest) Time elapsed: 0.017 s <<< FAILURE!
java.lang.AssertionError: Provider URL is null! Aborting test.
at exampleclients.ExampleJavaConsumerPactRuleTest.runTest(ExampleJavaConsumerPactRuleTest.java:57)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ExampleJavaConsumerPactRuleTest.runTest:57 Provider URL is null! Aborting test.
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
Versions used: JDK 1.8 ; JUnit 4.8.2 ; Pact-JVM 4.1.43Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
rholshausen
02/25/2025, 3:31 AMPaul Sobocinski
02/25/2025, 3:41 PM