|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use ForwardChainExpectation | |
|---|---|
| org.mockserver.client.server | |
| Uses of ForwardChainExpectation in org.mockserver.client.server |
|---|
| Methods in org.mockserver.client.server that return ForwardChainExpectation | |
|---|---|
ForwardChainExpectation |
MockServerClient.when(HttpRequest httpRequest)
Specify an unlimited expectation that will respond regardless of the number of matching http for example: mockServerClient .when( request() .withPath("/some_path") .withBody("some_request_body") ) .respond( response() .withBody("some_response_body") .withHeaders( new Header("responseName", "responseValue") ) ); |
ForwardChainExpectation |
MockServerClient.when(HttpRequest httpRequest,
Times times)
Specify an limited expectation that will respond a specified number of times when the http is matched for example: mockServerClient .when( new HttpRequest() .withPath("/some_path") .withBody("some_request_body"), VerificationTimes.exactly(5) ) .respond( new HttpResponse() .withBody("some_response_body") .withHeaders( new Header("responseName", "responseValue") ) ); |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||