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(org.mockserver.model.RequestDefinition requestDefinition) Specify an unlimited expectation that will respond regardless of the number of matching http for example:MockServerClient.when(org.mockserver.model.RequestDefinition requestDefinition, org.mockserver.matchers.Times times) Specify a limited expectation that will respond a specified number of times when the http is matchedMockServerClient.when(org.mockserver.model.RequestDefinition requestDefinition, org.mockserver.matchers.Times times, org.mockserver.matchers.TimeToLive timeToLive) Specify a limited expectation that will respond a specified number of times when the http is matchedMockServerClient.when(org.mockserver.model.RequestDefinition requestDefinition, org.mockserver.matchers.Times times, org.mockserver.matchers.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(org.mockserver.model.AfterAction afterAction) Set a single after-action to execute after the primary action completesForwardChainExpectation.withAfterActions(org.mockserver.model.AfterAction... afterActions) ForwardChainExpectation.withBeforeAction(org.mockserver.model.AfterAction beforeAction) Set a single before-action to execute before the primary action.ForwardChainExpectation.withBeforeActions(org.mockserver.model.AfterAction... beforeActions) ForwardChainExpectation.withChaos(org.mockserver.model.HttpChaosProfile chaos) Set a declarative HTTP chaos/fault injection profile for this expectation.Set id of this expectation which can be used to update this expectation later or for clearing or verifying by expectation id.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(org.mockserver.mock.ResponseMode responseMode) ForwardChainExpectation.withScenarioName(String scenarioName) Set the scenario name for stateful expectation matchingForwardChainExpectation.withScenarioState(String scenarioState) Set an ordered list of steps for this expectation.ForwardChainExpectation.withSteps(org.mockserver.model.ExpectationStep... steps) Set an ordered list of steps for this expectation.