接口的使用
cn.taketoday.test.web.servlet.htmlunit.WebRequestMatcher
使用WebRequestMatcher的程序包
程序包
说明
Server-side support for testing Web MVC applications with
MockMvc
and HtmlUnit.-
cn.taketoday.test.web.servlet.htmlunit中WebRequestMatcher的使用
修饰符和类型类说明final classAWebRequestMatcherthat allows matching on the host and optionally the port ofWebRequest#getUrl().final classAWebRequestMatcherthat allows matching onWebRequest#getUrl().toExternalForm()using a regular expression.修饰符和类型字段说明private final List<WebRequestMatcher>MockMvcWebConnectionBuilderSupport.requestMatchers修饰符和类型方法说明MockMvcWebConnectionBuilderSupport.useMockMvc(WebRequestMatcher... matchers) Add additionalWebRequestMatcherinstances that will ensure thatMockMvcis used to process the request, if such a matcher matches against the web request.