接口的使用
cn.taketoday.test.web.servlet.request.RequestPostProcessor
使用RequestPostProcessor的程序包
程序包
说明
Support for testing Web MVC applications via
WebTestClient
with MockMvc for server request
handling.Server-side support for testing Web MVC applications with
MockMvc
and HtmlUnit.Contains built-in
RequestBuilder
implementations.Contains built-in
MockMvcBuilder implementations.-
cn.taketoday.test.web.servlet.client中RequestPostProcessor的使用
类型变量类型为RequestPostProcessor的cn.taketoday.test.web.servlet.client中的方法参数修饰符和类型方法说明MockMvcHttpConnector.with(List<RequestPostProcessor> postProcessors) Create a new instance that applies the givenRequestPostProcessors to performed requests.类型变量类型为RequestPostProcessor的cn.taketoday.test.web.servlet.client中的构造器参数限定符构造器说明privateMockMvcHttpConnector(MockMvc mockMvc, List<RequestPostProcessor> requestPostProcessors) -
cn.taketoday.test.web.servlet.htmlunit中RequestPostProcessor的使用
修饰符和类型类说明(专用程序包) final classRequestPostProcessorto update the request for a forwarded dispatch.修饰符和类型方法说明voidHtmlUnitRequestBuilder.setForwardPostProcessor(RequestPostProcessor forwardPostProcessor) -
cn.taketoday.test.web.servlet.request中RequestPostProcessor的使用
修饰符和类型方法说明ConfigurableSmartRequestBuilder.with(RequestPostProcessor requestPostProcessor) Add the givenRequestPostProcessor.MockHttpServletRequestBuilder.with(RequestPostProcessor postProcessor) An extension point for further initialization ofMockHttpServletRequestin ways not built directly into theMockHttpServletRequestBuilder. -
cn.taketoday.test.web.servlet.setup中RequestPostProcessor的使用
修饰符和类型方法说明default RequestPostProcessorMockMvcConfigurer.beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, cn.taketoday.web.servlet.WebApplicationContext context) Invoked when the MockMvc instance is about to be created with the MockMvc builder and the Infra WebApplicationContext that will be passed to theDispatcherServlet.MockMvcConfigurerAdapter.beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, cn.taketoday.web.servlet.WebApplicationContext cxt) SharedHttpSessionConfigurer.beforeMockMvcCreated(ConfigurableMockMvcBuilder<?> builder, cn.taketoday.web.servlet.WebApplicationContext context)