spring-framework / org.springframework.test.web.servlet.htmlunit / MockMvcWebClientBuilder / webAppContextSetup

webAppContextSetup

open static fun webAppContextSetup(context: WebApplicationContext): MockMvcWebClientBuilder

Create a new MockMvcWebClientBuilder based on the supplied WebApplicationContext.

Parameters

context - the WebApplicationContext to create a MockMvc instance from; never null

Return
the MockMvcWebClientBuilder to customize

open static fun webAppContextSetup(context: WebApplicationContext, configurer: MockMvcConfigurer): MockMvcWebClientBuilder

Create a new MockMvcWebClientBuilder based on the supplied WebApplicationContext and MockMvcConfigurer.

Parameters

context - the WebApplicationContext to create a MockMvc instance from; never null

configurer - the MockMvcConfigurer to apply; never null

Return
the MockMvcWebClientBuilder to customize