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.
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
RequestExpectationGroup
protected RequestExpectationGroup()
-
-
Method Details
-
addAllExpectations
-
getExpectations
-
findExpectation
Return a matching expectation, ornullif none match.- Throws:
IOException
-
update
Invoke 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.
-
reset
public void reset()Reset all expectations for this group.
-