C D F M O R S W 

C

clear(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Clear all expectations that match the request

D

dumpToLog() - Method in class org.mockserver.client.MockServerClient
Pretty-print the json for all expectations already setup to the log.

F

ForwardChainExpectation - Class in org.mockserver.client
 
ForwardChainExpectation(MockServerClient, Expectation) - Constructor for class org.mockserver.client.ForwardChainExpectation
 

M

MockServerClient - Class in org.mockserver.client
 
MockServerClient(String, int) - Constructor for class org.mockserver.client.MockServerClient
Start the client communicating to a MockServer at the specified host and port for example:

MockServerClient mockServerClient = new MockServerClient("localhost", 8080);

O

org.mockserver.client - package org.mockserver.client
 

R

reset() - Method in class org.mockserver.client.MockServerClient
Reset MockServer by clearing all expectations
respond(HttpResponse) - Method in class org.mockserver.client.ForwardChainExpectation
 

S

sendExpectation(Expectation) - Method in class org.mockserver.client.MockServerClient
 

W

when(HttpRequest) - Method in class org.mockserver.client.MockServerClient
Specify an unlimited expectation that will respond regardless of the number of matching request for example:

mockServerClient .when( new HttpRequest() .withPath("/some_path") .withBody("some_request_body") ) .respond( new HttpResponse() .withBody("some_response_body") .withHeaders( new Header("responseName", "responseValue") ) );

when(HttpRequest, Times) - Method in class org.mockserver.client.MockServerClient
Specify an limited expectation that will respond a specified number of times when the request is matched for example:

mockServerClient .when( new HttpRequest() .withPath("/some_path") .withBody("some_request_body"), Times.exactly(5) ) .respond( new HttpResponse() .withBody("some_response_body") .withHeaders( new Header("responseName", "responseValue") ) );

C D F M O R S W 

Copyright © 2013. All Rights Reserved.