protected static class AbstractRequestExpectationManager.RequestExpectationGroup
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
RequestExpectationGroup() |
Modifier and Type | Method and Description |
---|---|
RequestExpectation |
findExpectation(ClientHttpRequest request)
Return a matching expectation, or
null if none match. |
java.util.Set<RequestExpectation> |
getExpectations() |
void |
reset()
Reset all expectations for this group.
|
void |
update(RequestExpectation expectation)
Invoke this for an expectation that has been matched.
|
void |
updateAll(java.util.Collection<RequestExpectation> expectations)
Collection variant of
update(RequestExpectation) that can
be used to insert expectations. |
public java.util.Set<RequestExpectation> getExpectations()
public RequestExpectation findExpectation(ClientHttpRequest request) throws java.io.IOException
null
if none match.java.io.IOException
public void update(RequestExpectation expectation)
The given expectation will either be stored if it has a remaining count or it will be removed otherwise.
public void updateAll(java.util.Collection<RequestExpectation> expectations)
update(RequestExpectation)
that can
be used to insert expectations.public void reset()