Class StaticTestExpectationResponseCallback
- java.lang.Object
-
- org.mockserver.integration.callback.StaticTestExpectationResponseCallback
-
- All Implemented Interfaces:
ExpectationCallback<HttpResponse>
,ExpectationResponseCallback
public class StaticTestExpectationResponseCallback extends Object implements ExpectationResponseCallback
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description static List<HttpRequest>
httpRequests
static HttpResponse
httpResponse
-
Constructor Summary
Constructors Constructor Description StaticTestExpectationResponseCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse
handle(HttpRequest httpRequest)
Called for every request when expectation condition has been satisfied.
-
-
-
Field Detail
-
httpRequests
public static List<HttpRequest> httpRequests
-
httpResponse
public static HttpResponse httpResponse
-
-
Method Detail
-
handle
public HttpResponse handle(HttpRequest httpRequest)
Description copied from interface:ExpectationResponseCallback
Called for every request when expectation condition has been satisfied. The request that satisfied the expectation condition is passed as the parameter and the return value is the request that will be returned.- Specified by:
handle
in interfaceExpectationCallback<HttpResponse>
- Specified by:
handle
in interfaceExpectationResponseCallback
- Parameters:
httpRequest
- the request that satisfied the expectation condition- Returns:
- the response that will be returned
-
-