Modifier and Type | Method and Description |
---|---|
MockServerClient |
MockServerClient.clear(ExpectationId expectationId)
Clear all expectations and logs that match the expectation id
|
MockServerClient |
MockServerClient.clear(ExpectationId expectationId,
ClearType type)
Clear expectations, logs or both that match the expectation id
|
MockServerClient |
MockServerClient.clear(RequestDefinition requestDefinition)
Clear all expectations and logs that match the request matcher
|
MockServerClient |
MockServerClient.clear(RequestDefinition requestDefinition,
ClearType type)
Clear expectations, logs or both that match the request matcher
|
MockServerClient |
MockServerClient.clear(String expectationId)
Clear all expectations and logs that match the expectation id
|
MockServerClient |
MockServerClient.clear(String expectationId,
ClearType type)
Clear expectations, logs or both that match the expectation id
|
MockServerClient |
MockServerClient.openUI()
Launch UI and wait the default period to allow the UI to launch and start collecting logs,
this ensures that the log are visible in the UI even if MockServer is shutdown by a test
shutdown function, such as After, AfterClass, AfterAll, etc
|
MockServerClient |
MockServerClient.openUI(TimeUnit timeUnit,
long pause)
Launch UI and wait a specified period to allow the UI to launch and start collecting logs,
this ensures that the log are visible in the UI even if MockServer is shutdown by a test
shutdown function, such as After, AfterClass, AfterAll, etc
|
MockServerClient |
MockServerClient.reset()
Reset MockServer by clearing all expectations
|
MockServerClient |
MockServerClient.setProxyConfiguration(ProxyConfiguration proxyConfiguration)
Deprecated.
use withProxyConfiguration which is more consistent with MockServer API style
|
MockServerClient |
MockServerClient.setRequestOverride(HttpRequest requestOverride)
Deprecated.
use withRequestOverride which is more consistent with MockServer API style
|
MockServerClient |
MockServerClient.verify(ExpectationId... expectationIds)
Verify a list of requests have been sent in the order specified for example:
|
MockServerClient |
MockServerClient.verify(ExpectationId expectationId,
VerificationTimes times)
Verify a request has been sent for example:
|
MockServerClient |
MockServerClient.verify(ExpectationId expectationId,
VerificationTimes times,
Integer maximumNumberOfRequestToReturnInVerificationFailure)
Verify a request has been sent for example:
|
MockServerClient |
MockServerClient.verify(Integer maximumNumberOfRequestToReturnInVerificationFailure,
ExpectationId... expectationIds)
Verify a list of requests have been sent in the order specified for example:
|
MockServerClient |
MockServerClient.verify(Integer maximumNumberOfRequestToReturnInVerificationFailure,
RequestDefinition... requestDefinitions)
Verify a list of requests have been sent in the order specified for example:
|
MockServerClient |
MockServerClient.verify(RequestDefinition... requestDefinitions)
Verify a list of requests have been sent in the order specified for example:
|
MockServerClient |
MockServerClient.verify(RequestDefinition requestDefinition,
VerificationTimes times)
Verify a request has been sent for example:
|
MockServerClient |
MockServerClient.verify(RequestDefinition requestDefinition,
VerificationTimes times,
Integer maximumNumberOfRequestToReturnInVerificationFailure)
Verify a request has been sent for example:
|
MockServerClient |
MockServerClient.verify(String... expectationIds)
Verify a list of requests have been sent in the order specified for example:
|
MockServerClient |
MockServerClient.verify(String expectationId,
VerificationTimes times)
Verify a request has been sent for example:
|
MockServerClient |
MockServerClient.verifyZeroInteractions()
Verify no requests have been sent.
|
MockServerClient |
MockServerClient.withControlPlaneJWT(String controlPlaneJWT)
Specify JWT to use for control plane authorisation
|
MockServerClient |
MockServerClient.withControlPlaneJWT(Supplier<String> controlPlaneJWTSupplier)
Specify JWT supplier to use for control plane authorisation
|
MockServerClient |
MockServerClient.withProxyConfiguration(ProxyConfiguration proxyConfiguration)
Configure communication to MockServer to go via a proxy
|
MockServerClient |
MockServerClient.withRequestOverride(HttpRequest requestOverride) |
MockServerClient |
MockServerClient.withSecure(boolean secure) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<MockServerClient> |
MockServerClient.stop(boolean ignoreFailure)
Stop MockServer gracefully (only support for Netty version, not supported for WAR version)
|
Future<MockServerClient> |
MockServerClient.stopAsync()
Stop MockServer gracefully (only support for Netty version, not supported for WAR version)
|
Modifier and Type | Method and Description |
---|---|
void |
ExpectationInitializer.initializeExpectations(MockServerClient mockServerClient)
Deprecated.
|
void |
PluginExpectationInitializer.initializeExpectations(MockServerClient mockServerClient) |
Modifier and Type | Class and Description |
---|---|
class |
ClientAndServer |
Modifier and Type | Method and Description |
---|---|
MockServerClient |
MockServerRule.getClient() |
Modifier and Type | Field and Description |
---|---|
protected static MockServerClient |
AbstractMockingIntegrationTestBase.mockServerClient |
Modifier and Type | Method and Description |
---|---|
abstract MockServerClient |
AbstractProxyIntegrationTest.getMockServerClient() |
Copyright © 2022. All rights reserved.