Package au.com.dius.pact.consumer
Class MockHttpsServer
-
- All Implemented Interfaces:
-
au.com.dius.pact.consumer.MockServer,com.sun.net.httpserver.HttpHandler
public class MockHttpsServer extends BaseJdkMockServer
-
-
Field Summary
Fields Modifier and Type Field Description private final ConcurrentHashMap<IRequest, List<PactVerificationResult>>mismatchedRequestsprivate final ConcurrentLinkedQueue<Pair<IRequest, IRequest>>matchedRequestsprivate final BasePactpactprivate final MockProviderConfigconfig
-
Constructor Summary
Constructors Constructor Description MockHttpsServer(BasePact pact, MockProviderConfig config)
-
Method Summary
Modifier and Type Method Description PactupdatePact(Pact pact)Lets the mock server annotate the Pact when ready to be written -
Methods inherited from class au.com.dius.pact.consumer.BaseMockServer
getConfig, getMatchedRequests, getMismatchedRequests, getPact, runAndWritePact, validateMockServerState, verifyResultAndWritePact, waitForServer -
Methods inherited from class au.com.dius.pact.consumer.BaseJdkMockServer
getPort, getUrl, handle, start, stop, toPactRequest -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MockHttpsServer
MockHttpsServer(BasePact pact, MockProviderConfig config)
-
-
Method Detail
-
updatePact
Pact updatePact(Pact pact)
Lets the mock server annotate the Pact when ready to be written
-
-
-
-