接口 RequestMatcher
- 所有已知子接口:
RequestExpectation
- 所有已知实现类:
DefaultRequestExpectation
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface RequestMatcher
A contract for matching requests to expectations.See
MockRestRequestMatchers
for static factory methods.- 从以下版本开始:
- 3.2
- 作者:
- Craig Walls
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
match(ClientHttpRequest request)
Match the given request against specific expectations.
方法详细资料
match
void match(ClientHttpRequest request) throws IOException, AssertionError
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