protected static class AbstractRequestExpectationManager.RequestExpectationGroup extends Object
Modifier | Constructor and Description |
---|---|
protected |
RequestExpectationGroup() |
Modifier and Type | Method and Description |
---|---|
RequestExpectation |
findExpectation(ClientHttpRequest request) |
Set<RequestExpectation> |
getExpectations() |
void |
reset() |
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()
@Nullable public RequestExpectation findExpectation(ClientHttpRequest request) throws IOException
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()