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

webAppContextSetup

open static fun webAppContextSetup(context: WebApplicationContext): MockMvcHtmlUnitDriverBuilder

Create a new MockMvcHtmlUnitDriverBuilder based on the supplied WebApplicationContext.

Parameters

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

Return
the MockMvcHtmlUnitDriverBuilder to customize

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

Create a new MockMvcHtmlUnitDriverBuilder 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 MockMvcHtmlUnitDriverBuilder to customize