-
- 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 BasePactpactprivate final MockProviderConfigconfig
-
Constructor Summary
Constructors Constructor Description KTorMockServer(BasePact pact, MockProviderConfig config, Long stopTimeout)
-
Method Summary
Modifier and Type Method Description final BasePactgetPact()final MockProviderConfiggetConfig()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()-
-
Constructor Detail
-
KTorMockServer
KTorMockServer(BasePact pact, MockProviderConfig config, Long stopTimeout)
-
-
Method Detail
-
getPact
final BasePact getPact()
-
getConfig
final MockProviderConfig getConfig()
-
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
-
-
-
-