Package au.com.dius.pact.consumer
Class KTorMockServer
-
- All Implemented Interfaces:
-
au.com.dius.pact.consumer.MockServer
public final class KTorMockServer extends BaseMockServer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classKTorMockServer.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ConcurrentHashMap<IRequest, List<PactVerificationResult>>mismatchedRequestsprivate final ConcurrentLinkedQueue<Pair<IRequest, IRequest>>matchedRequestsprivate final BasePactpactprivate final MockProviderConfigconfigpublic final static KTorMockServer.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description KTorMockServer(BasePact pact, MockProviderConfig config, Long stopTimeout)KTorMockServer(BasePact pact, MockProviderConfig config)
-
Method Summary
Modifier and Type Method Description StringgetUrl()Returns the URL for this mock server. IntegergetPort()Returns the port of the mock server. PactupdatePact(Pact pact)Lets the mock server annotate the Pact when ready to be written Unitstart()Unitstop()-
Methods inherited from class au.com.dius.pact.consumer.BaseMockServer
getConfig, getMatchedRequests, getMismatchedRequests, getPact, runAndWritePact, validateMockServerState, verifyResultAndWritePact, waitForServer -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KTorMockServer
KTorMockServer(BasePact pact, MockProviderConfig config, Long stopTimeout)
-
KTorMockServer
KTorMockServer(BasePact pact, MockProviderConfig config)
-
-
Method Detail
-
getUrl
String getUrl()
Returns the URL for this mock server. The port will be the one bound by the server.
-
getPort
Integer getPort()
Returns the port of the mock server. This will be the port the server is bound to.
-
updatePact
Pact updatePact(Pact pact)
Lets the mock server annotate the Pact when ready to be written
-
-
-
-