|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Times | |
|---|---|
| org.mockserver.client.proxy | |
| org.mockserver.client.server | |
| Uses of Times in org.mockserver.client.proxy |
|---|
| Methods in org.mockserver.client.proxy that return Times | |
|---|---|
static Times |
Times.atLeast(int count)
|
static Times |
Times.exactly(int count)
|
static Times |
Times.once()
|
| Methods in org.mockserver.client.proxy with parameters of type Times | |
|---|---|
ProxyClient |
ProxyClient.verify(HttpRequest httpRequest,
Times times)
Verify a request has been sent for example: mockServerClient .verify( request() .withPath("/some_path") .withBody("some_request_body"), Times.exactly(3) ); Times supports multiple static factory methods: once() - verify the request was only received once exactly(n) - verify the request was only received exactly n times atLeast(n) - verify the request was only received at least n times |
| Uses of Times in org.mockserver.client.server |
|---|
| Methods in org.mockserver.client.server with parameters of type Times | |
|---|---|
MockServerClient |
MockServerClient.verify(HttpRequest httpRequest,
HttpResponse httpResponse,
Times times)
Verify a request has been sent for a specific expected response example: mockServerClient .verify( request() .withPath("/some_path") .withBody("some_request_body"), Times.exactly(3) ); This version is useful if multiple requests have been configured with different responses the needs to confirm that an exact response has been received. |
MockServerClient |
MockServerClient.verify(HttpRequest httpRequest,
Times times)
Verify a request has been sent for example: mockServerClient .verify( request() .withPath("/some_path") .withBody("some_request_body"), Times.exactly(3) ); Times supports multiple static factory methods: once() - verify the request was only received once exactly(n) - verify the request was only received exactly n times atLeast(n) - verify the request was only received at least n times |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||