Class PrecannedTestExpectationResponseCallback
java.lang.Object
org.mockserver.testing.integration.callback.PrecannedTestExpectationResponseCallback
- All Implemented Interfaces:
ExpectationCallback<HttpResponse>,ExpectationResponseCallback
public class PrecannedTestExpectationResponseCallback
extends Object
implements ExpectationResponseCallback
- Author:
- jamesdbloom
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(HttpRequest httpRequest) Called for every request when expectation condition has been satisfied.
-
Field Details
-
httpResponse
-
-
Constructor Details
-
PrecannedTestExpectationResponseCallback
public PrecannedTestExpectationResponseCallback()
-
-
Method Details
-
handle
Description copied from interface:ExpectationResponseCallbackCalled 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:
handlein interfaceExpectationCallback<HttpResponse>- Specified by:
handlein interfaceExpectationResponseCallback- Parameters:
httpRequest- the request that satisfied the expectation condition- Returns:
- the response that will be returned
-