protected static class AbstractRequestExpectationManager.RequestExpectationGroup
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
RequestExpectationGroup() |
Modifier and Type | Method and Description |
---|---|
void |
addAllExpectations(java.util.Collection<RequestExpectation> expectations) |
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)
Deprecated.
as of 5.0.3, if favor of
addAllExpectations(java.util.Collection<org.springframework.test.web.client.RequestExpectation>) |
public void addAllExpectations(java.util.Collection<RequestExpectation> expectations)
public java.util.Set<RequestExpectation> getExpectations()
@Nullable public RequestExpectation findExpectation(ClientHttpRequest request) throws java.io.IOException
null
if none match.java.io.IOException
public void update(RequestExpectation expectation)
The count of the given expectation is incremented, then it is either stored if remainingCount > 0 or removed otherwise.
@Deprecated public void updateAll(java.util.Collection<RequestExpectation> expectations)
addAllExpectations(java.util.Collection<org.springframework.test.web.client.RequestExpectation>)
public void reset()