spring-framework / org.springframework.test.web.servlet.htmlunit / MockMvcWebConnectionBuilderSupport / useMockMvc

useMockMvc

open fun useMockMvc(vararg matchers: WebRequestMatcher): T

Add additional WebRequestMatcher instances that will ensure that MockMvc is used to process the request, if such a matcher matches against the web request.

Parameters

matchers - additional WebRequestMatcher instances

Return
this builder for further customization