-
- 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<Request, List<PactVerificationResult>>mismatchedRequestsprivate final ConcurrentLinkedQueue<Request>matchedRequestsprivate final RequestMatchingrequestMatcherprivate final RequestResponsePactpactprivate final MockProviderConfigconfig
-
Constructor Summary
Constructors Constructor Description KTorMockServer(RequestResponsePact pact, MockProviderConfig config, Long stopTimeout)
-
Method Summary
Modifier and Type Method Description StringgetUrl()Returns the URL for this mock server. IntegergetPort()Returns the port of the mock server. Unitstart()Unitstop()final ConcurrentHashMap<Request, List<PactVerificationResult>>getMismatchedRequests()final ConcurrentLinkedQueue<Request>getMatchedRequests()final RequestMatchinggetRequestMatcher()final RequestResponsePactgetPact()final MockProviderConfiggetConfig()-
Methods inherited from class au.com.dius.pact.consumer.KTorMockServer
invalidResponse, runAndWritePact, validateMockServerState, verifyResultAndWritePact, waitForServer -
Methods inherited from class au.com.dius.pact.consumer.MockServer
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KTorMockServer
KTorMockServer(RequestResponsePact pact, MockProviderConfig config, Long stopTimeout)
-
-
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.
-
getMismatchedRequests
final ConcurrentHashMap<Request, List<PactVerificationResult>> getMismatchedRequests()
-
getMatchedRequests
final ConcurrentLinkedQueue<Request> getMatchedRequests()
-
getRequestMatcher
final RequestMatching getRequestMatcher()
-
getPact
final RequestResponsePact getPact()
-
getConfig
final MockProviderConfig getConfig()
-
-
-
-