Package 

Interface MockServer

    • Method Summary

      Modifier and Type Method Description
      abstract String getUrl() Returns the URL for this mock server.
      abstract Integer getPort() Returns the port of the mock server.
      abstract <R extends Any> PactVerificationResult runAndWritePact(BasePact pact, PactSpecVersion pactVersion, PactTestRun<R> testFn) This will start the mock server and execute the test function.
      abstract PactVerificationResult validateMockServerState(Object testResult) Returns the results of validating the mock server state
      abstract Pact updatePact(Pact pact) Lets the mock server annotate the Pact when ready to be written
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getUrl

         abstract String getUrl()

        Returns the URL for this mock server. The port will be the one bound by the server.

      • getPort

         abstract Integer getPort()

        Returns the port of the mock server. This will be the port the server is bound to.

      • updatePact

         abstract Pact updatePact(Pact pact)

        Lets the mock server annotate the Pact when ready to be written