public class ClientDriverExpectation extends Object
| Constructor and Description |
|---|
ClientDriverExpectation(ClientDriverRequestResponsePair pair)
Creates a new expectation instance.
|
| Modifier and Type | Method and Description |
|---|---|
ClientDriverExpectation |
anyTimes()
Indicate that this expectation should be matched any number of times.
|
ClientDriverRequestResponsePair |
getPair()
Gets the request/response pair this expectation covers.
|
String |
getStatusString()
Gets a string giving the status of the expectation.
|
boolean |
isSatisfied()
Determine whether this expectation has been satisfied.
|
void |
match(HttpRealRequest realRequest)
Indicate that this expectation has been matched.
|
boolean |
shouldMatchAnyTimes()
Whether this expectation should match any number of times.
|
ClientDriverExpectation |
times(int times)
Indicate that this expectation should be matched a given number of times.
|
ClientDriverExpectation |
whenMatched(MatchedRequestHandler matchedRequestHandler)
When a call is matched call a handler
|
public ClientDriverExpectation(ClientDriverRequestResponsePair pair)
pair - The request/response pair the expectation covers.public final ClientDriverRequestResponsePair getPair()
public final ClientDriverExpectation times(int times)
times - The number of times this expectation should be matchedpublic final ClientDriverExpectation anyTimes()
public final void match(HttpRealRequest realRequest)
realRequest - the request we're matching againstpublic final boolean isSatisfied()
public final boolean shouldMatchAnyTimes()
public final String getStatusString()
public ClientDriverExpectation whenMatched(MatchedRequestHandler matchedRequestHandler)
matchedRequestHandler - called when the request is matchedCopyright © 2016. All Rights Reserved.