Class AbstractRequestExpectationManager.RequestExpectationGroup
java.lang.Object
org.springframework.test.web.client.AbstractRequestExpectationManager.RequestExpectationGroup
- Enclosing class:
- AbstractRequestExpectationManager
Helper class to manage a group of remaining expectations.
- Since:
- 4.3
- Author:
- Rossen Stoyanchev, Juergen Hoeller
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAllExpectations(Collection<RequestExpectation> expectations) findExpectation(ClientHttpRequest request) Return a matching expectation, ornullif none match.voidreset()Reset all expectations for this group.voidupdate(RequestExpectation expectation) Invoke this for an expectation that has been matched.
- 
Constructor Details- 
RequestExpectationGroupprotected RequestExpectationGroup()
 
- 
- 
Method Details- 
addAllExpectations
- 
getExpectations
- 
findExpectationReturn a matching expectation, ornullif none match.- Throws:
- IOException
 
- 
updateInvoke this for an expectation that has been matched.The count of the given expectation is incremented, then it is either stored if remainingCount > 0 or removed otherwise. 
- 
resetpublic void reset()Reset all expectations for this group.
 
-