Module org.mockserver.client
Package org.mockserver.client
package org.mockserver.client
-
ClassDescriptionHandler invoked when a REQUEST-phase breakpoint is hit.Handler invoked when a RESPONSE-phase breakpoint is hit.Handler invoked when a RESPONSE_STREAM or INBOUND_STREAM phase breakpoint is hit.Convenience re-exports of LLM model-class static factories so that users can write a single import:Builder for multi-turn LLM conversation mocks with optional per-session isolation.Builder for LLM provider failover/retry test scenarios.Fluent builder for creating LLM mock expectations.Client for communicating with a running MockServer instance.Fluent builder for
MockServerClient.Structured report returned byMockServerClient.contractTest(java.lang.String, java.lang.String)andMockServerClient.trafficValidate(java.lang.String).Result of validating a single operation/request against an OpenAPI specification.A scenario and its current state, as returned by the scenario control-plane endpoints.AnAssertionErrorraised whenMockServerClient.verifySLO(SloCriteria)receives aFAILverdict (406).Fluent builder that stands MockServer up as a mock realtime voice API — either the OpenAI Realtime API or the Google Gemini Live API — over a WebSocket, so an application/agent using those SDKs can be tested offline.Options that shape the expectations returned byMockServerClient.retrieveRecordedExpectations(org.mockserver.model.RequestDefinition, RecordedExpectationsOptions).Which expectation would serve a recorded request now, why each expectation evaluated ahead of it was passed over, and how the request was handled when it arrived; returned byMockServerClient.explain(String).One expectation as it was evaluated.The request was forwarded and the forward failed, so MockServer answered with a502.How the request was handled when it arrived.Why an expectation was passed over, in the order the gates are applied when a request is served;UNKNOWNis a reason this client does not know, sent by a newer server.Sub-builder for configuring a single turn within an LLM conversation mock.