接口 RequestMatcher
- 所有已知实现类:
ContentRequestMatchers.AbstractXmlRequestMatcher,DefaultRequestExpectation,JsonPathRequestMatchers.AbstractJsonPathRequestMatcher
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
A contract for matching requests to expectations.
See MockRestRequestMatchers for static factory methods.
- 从以下版本开始:
- 4.0
- 作者:
- Craig Walls
-
方法概要
修饰符和类型方法说明voidmatch(cn.taketoday.http.client.ClientHttpRequest request) Match the given request against specific expectations.
-
方法详细资料
-
match
Match the given request against specific expectations.- 参数:
request- the request to make assertions on- 抛出:
IOException- in case of I/O errorsAssertionError- if expectations are not met
-