protected static class AbstractRequestExpectationManager.RequestExpectationGroup extends 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. |
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(Collection<RequestExpectation> expectations)
Collection variant of
update(RequestExpectation) that can
be used to insert expectations. |
public Set<RequestExpectation> getExpectations()
public RequestExpectation findExpectation(ClientHttpRequest request) throws IOException
null
if none match.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(Collection<RequestExpectation> expectations)
update(RequestExpectation)
that can
be used to insert expectations.public void reset()