接口 RequestMatcher

所有已知子接口:
RequestExpectation, XpathRequestMatchers.XpathRequestMatcher
所有已知实现类:
ContentRequestMatchers.AbstractXmlRequestMatcher, DefaultRequestExpectation, JsonPathRequestMatchers.AbstractJsonPathRequestMatcher
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface RequestMatcher
A contract for matching requests to expectations.

See MockRestRequestMatchers for static factory methods.

从以下版本开始:
4.0
作者:
Craig Walls
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    match(cn.taketoday.http.client.ClientHttpRequest request)
    Match the given request against specific expectations.
  • 方法详细资料

    • match

      void match(cn.taketoday.http.client.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 errors
      AssertionError - if expectations are not met