Uses of Class
org.mockserver.client.ForwardChainExpectation
Packages that use ForwardChainExpectation
-
Uses of ForwardChainExpectation in org.mockserver.client
Methods in org.mockserver.client that return ForwardChainExpectationModifier and TypeMethodDescriptionMockServerClient.when(RequestDefinition requestDefinition) Specify an unlimited expectation that will respond regardless of the number of matching http for example:MockServerClient.when(RequestDefinition requestDefinition, Times times) Specify a limited expectation that will respond a specified number of times when the http is matchedMockServerClient.when(RequestDefinition requestDefinition, Times times, TimeToLive timeToLive) Specify a limited expectation that will respond a specified number of times when the http is matchedMockServerClient.when(RequestDefinition requestDefinition, Times times, TimeToLive timeToLive, Integer priority) Specify a limited expectation that will respond a specified number of times when the http is matched and will be matched according to priority as follows:ForwardChainExpectation.withAfterAction(AfterAction afterAction) Set a single after-action to execute after the primary action completesForwardChainExpectation.withAfterActions(AfterAction... afterActions) ForwardChainExpectation.withBeforeAction(AfterAction beforeAction) Set a single before-action to execute before the primary action.ForwardChainExpectation.withBeforeActions(AfterAction... beforeActions) ForwardChainExpectation.withCapture(List<CaptureRule> capture) Set the capture rules that extract values from the matched request into scenario state, so later template responses can read them via thescenariohelper.ForwardChainExpectation.withCapture(CaptureRule... capture) Set the capture rules that extract values from the matched request into scenario state, so later template responses can read them via thescenariohelper.ForwardChainExpectation.withChaos(HttpChaosProfile chaos) Set a declarative HTTP chaos/fault injection profile for this expectation.ForwardChainExpectation.withCrossProtocolScenario(CrossProtocolScenario crossProtocolScenario) Add a single cross-protocol scenario correlation to this expectation.ForwardChainExpectation.withCrossProtocolScenarios(List<CrossProtocolScenario> crossProtocolScenarios) Set the list of cross-protocol scenario correlations for this expectation.ForwardChainExpectation.withHttpResponses(List<HttpResponse> httpResponses) Set a list of responses for stateful / multi-response selection.Set id of this expectation which can be used to update this expectation later or for clearing or verifying by expectation id.ForwardChainExpectation.withNamespace(String namespace) Set the optional namespace (a.k.a. tenant) that this expectation belongs to, enabling multiple teams or test-suites to share a single MockServer instance without their expectations colliding.ForwardChainExpectation.withNewScenarioState(String newScenarioState) ForwardChainExpectation.withPercentage(Integer percentage) Set percentage of requests this expectation should match (0-100).ForwardChainExpectation.withPriority(int priority) Set priority of this expectation which is used to determine the matching order of expectations when a request is received.ForwardChainExpectation.withResponseMode(ResponseMode responseMode) ForwardChainExpectation.withResponseWeights(List<Integer> responseWeights) Set the relative weight of each response inhttpResponses(index-aligned), used whenResponseMode.WEIGHTEDselection is active.ForwardChainExpectation.withScenarioName(String scenarioName) Set the scenario name for stateful expectation matchingForwardChainExpectation.withScenarioState(String scenarioState) ForwardChainExpectation.withSteps(List<ExpectationStep> steps) Set an ordered list of steps for this expectation.ForwardChainExpectation.withSteps(ExpectationStep... steps) Set an ordered list of steps for this expectation.ForwardChainExpectation.withSwitchAfter(Integer switchAfter) Set the number of matches served by each response before advancing to the next, used whenResponseMode.SWITCHselection is active (default 1).