public MockServer
@NotNull java.lang.String getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
int getPort()
Returns the port of the mock server. This will be the port the server is bound to.
@NotNull <R> PactVerificationResult runAndWritePact(@NotNull au.com.dius.pact.core.model.RequestResponsePact pact, @NotNull au.com.dius.pact.core.model.PactSpecVersion pactVersion, @NotNull PactTestRun<R> testFn)
This will start the mock server and execute the test function. Returns the result of running the test.
@NotNull PactVerificationResult validateMockServerState(@Nullable java.lang.Object testResult)
Returns the results of validating the mock server state