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) |
java.util.Set<RequestExpectation> |
getExpectations() |
void |
reset() |
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()
@Nullable public RequestExpectation findExpectation(ClientHttpRequest request) throws java.io.IOException
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()