Modifier and Type | Method and Description |
---|---|
MockServerClient |
MockServerClient.clear(RequestDefinition requestDefinition)
Clear all expectations and logs that match the http
|
MockServerClient |
MockServerClient.clear(RequestDefinition requestDefinition,
ClearType type)
Clear expectations, logs or both that match the http
|
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.setRequestOverride(HttpRequest requestOverride) |
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.verifyZeroInteractions()
Verify no requests have been sent.
|
MockServerClient |
MockServerClient.withSecure(boolean secure) |
Modifier and Type | Method and Description |
---|---|
Future<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 © 2020. All rights reserved.