类 AbstractRequestExpectationManager.RequestExpectationGroup
java.lang.Object
cn.taketoday.test.web.client.AbstractRequestExpectationManager.RequestExpectationGroup
Helper class to manage a group of remaining expectations.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddAllExpectations(Collection<RequestExpectation> expectations) findExpectation(cn.taketoday.http.client.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.private voidupdateInternal(RequestExpectation expectation)
-
字段详细资料
-
expectations
-
-
构造器详细资料
-
RequestExpectationGroup
protected RequestExpectationGroup()
-
-
方法详细资料
-
addAllExpectations
-
getExpectations
-
findExpectation
@Nullable public RequestExpectation findExpectation(cn.taketoday.http.client.ClientHttpRequest request) throws IOException Return a matching expectation, ornullif none match.- 抛出:
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.
-
updateInternal
-
reset
public void reset()Reset all expectations for this group.
-