Uses of Class
org.mockserver.client.MockServerClient
Packages that use MockServerClient
Package
Description
-
Uses of MockServerClient in org.mockserver.client
Methods in org.mockserver.client that return MockServerClientModifier and TypeMethodDescriptionMockServerClient.advanceClock(Duration duration) Advance the MockServer clock by the specified duration.Clear all expectations and logs that match the expectation idClear expectations, logs or both that match the expectation idMockServerClient.clear(ExpectationId expectationId) Clear all expectations and logs that match the expectation idMockServerClient.clear(ExpectationId expectationId, ClearType type) Clear expectations, logs or both that match the expectation idMockServerClient.clear(RequestDefinition requestDefinition) Clear all expectations and logs that match the request matcherMockServerClient.clear(RequestDefinition requestDefinition, ClearType type) Clear expectations, logs or both that match the request matcherMockServerClient.clearGrpcDescriptors()MockServerClient.clearServiceChaos()Clear all service-scoped chaos profiles.MockServerClient.crud(CrudExpectationsDefinition crudDefinition) Register a CRUD simulation that auto-generates RESTful endpoints for a given base path.MockServerClient.freezeClock()Freeze the MockServer clock at the current time.MockServerClient.freezeClock(Instant instant) Freeze the MockServer clock at the specified instant.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, etcLaunch 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, etcMockServerClient.removeServiceChaos(String host) Remove the service-scoped chaos profile registered for the given host.MockServerClient.reset()Reset MockServer by clearing all expectationsMockServerClient.resetClock()Reset the MockServer clock to real wall-clock time.MockServerClient.setProxyConfiguration(ProxyConfiguration proxyConfiguration) Deprecated.use withProxyConfiguration which is more consistent with MockServer API styleMockServerClient.setRequestOverride(HttpRequest requestOverride) Deprecated.use withRequestOverride which is more consistent with MockServer API styleMockServerClient.setServiceChaos(String host, HttpChaosProfile chaos) Register a service-scoped HTTP chaos profile for an upstream host.MockServerClient.setServiceChaos(String host, HttpChaosProfile chaos, long ttlMillis) Register a service-scoped HTTP chaos profile for an upstream host that auto-reverts afterttlMillismilliseconds (a "dead-man's switch" so the chaos self-heals even ifremoveServiceChaos(String)/clearServiceChaos()is never called).MockServerClient.uploadGrpcDescriptor(byte[] descriptorSetBytes) MockServerClient.verify(Integer maximumNumberOfRequestToReturnInVerificationFailure, ExpectationId... expectationIds) Verify a list of requests have been sent in the order specified for example:MockServerClient.verify(Integer maximumNumberOfRequestToReturnInVerificationFailure, RequestDefinition... requestDefinitions) Verify a list of requests have been sent in the order specified for example:Verify a list of requests have been sent in the order specified for example:MockServerClient.verify(String expectationId, VerificationTimes times) Verify a request has been sent for example:MockServerClient.verify(ExpectationId... expectationIds) Verify a list of requests have been sent in the order specified for example:MockServerClient.verify(ExpectationId expectationId, VerificationTimes times) Verify a request has been sent for example:MockServerClient.verify(ExpectationId expectationId, VerificationTimes times, Integer maximumNumberOfRequestToReturnInVerificationFailure) Verify a request has been sent for example:MockServerClient.verify(RequestDefinition... requestDefinitions) Verify a list of requests have been sent in the order specified for example:MockServerClient.verify(RequestDefinition requestDefinition, VerificationTimes times) Verify a request has been sent for example:MockServerClient.verify(RequestDefinition requestDefinition, VerificationTimes times, Integer maximumNumberOfRequestToReturnInVerificationFailure) Verify a request has been sent for example:MockServerClient.verifyAsyncMessage(String verificationJson) Verify async messages recorded by subscribers against the given criteria.MockServerClient.verifyZeroInteractions()Verify no requests have been sent.MockServerClient.withControlPlaneJWT(String controlPlaneJWT) Specify JWT to use for control plane authorisationMockServerClient.withControlPlaneJWT(Supplier<String> controlPlaneJWTSupplier) Specify JWT supplier to use for control plane authorisationMockServerClient.withProxyConfiguration(ProxyConfiguration proxyConfiguration) Configure communication to MockServer to go via a proxyMockServerClient.withRequestOverride(HttpRequest requestOverride) MockServerClient.withSecure(boolean secure) Methods in org.mockserver.client that return types with arguments of type MockServerClientModifier and TypeMethodDescriptionMockServerClient.stop(boolean ignoreFailure) Stop MockServer gracefully (only support for Netty version, not supported for WAR version)MockServerClient.stopAsync()Stop MockServer gracefully (only support for Netty version, not supported for WAR version)Methods in org.mockserver.client with parameters of type MockServerClientModifier and TypeMethodDescriptionA2aMockBuilder.applyTo(MockServerClient client) LlmConversationBuilder.applyTo(MockServerClient client) Build all turn expectations and register them with the MockServerClient.LlmMockBuilder.applyTo(MockServerClient client) Build the expectation and register it with the MockServerClient.McpMockBuilder.applyTo(MockServerClient client) TurnBuilder.applyTo(MockServerClient client) Shortcut: build and register all turns with the MockServerClient. -
Uses of MockServerClient in org.mockserver.client.initialize
Methods in org.mockserver.client.initialize with parameters of type MockServerClientModifier and TypeMethodDescriptionvoidExpectationInitializer.initializeExpectations(MockServerClient mockServerClient) Deprecated.voidPluginExpectationInitializer.initializeExpectations(MockServerClient mockServerClient) -
Uses of MockServerClient in org.mockserver.integration
Subclasses of MockServerClient in org.mockserver.integration -
Uses of MockServerClient in org.mockserver.junit
Methods in org.mockserver.junit that return MockServerClient -
Uses of MockServerClient in org.mockserver.testcontainers
Methods in org.mockserver.testcontainers that return MockServerClientModifier and TypeMethodDescriptionMockServerContainer.getClient()Returns aMockServerClientconnected to this container. -
Uses of MockServerClient in org.mockserver.testing.integration.mock
Fields in org.mockserver.testing.integration.mock declared as MockServerClientModifier and TypeFieldDescriptionprotected static MockServerClientAbstractMockingIntegrationTestBase.mockServerClient -
Uses of MockServerClient in org.mockserver.testing.integration.proxy
Methods in org.mockserver.testing.integration.proxy that return MockServerClientModifier and TypeMethodDescriptionabstract MockServerClientAbstractProxyIntegrationTest.getMockServerClient()