protected static class AbstractRequestExpectationManager.RequestExpectationGroup extends Object
| Modifier | Constructor and Description | 
|---|---|
| protected  | RequestExpectationGroup() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAllExpectations(Collection<RequestExpectation> expectations) | 
| RequestExpectation | findExpectation(ClientHttpRequest request)Return a matching expectation, or  nullif 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)Deprecated. 
 as of 5.0.3, if favor of  addAllExpectations(java.util.Collection<org.springframework.test.web.client.RequestExpectation>) | 
public void addAllExpectations(Collection<RequestExpectation> expectations)
public Set<RequestExpectation> getExpectations()
@Nullable public RequestExpectation findExpectation(ClientHttpRequest request) throws IOException
null if none match.IOExceptionpublic 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(Collection<RequestExpectation> expectations)
addAllExpectations(java.util.Collection<org.springframework.test.web.client.RequestExpectation>)public void reset()