open static fun webAppContextSetup(context: WebApplicationContext): DefaultMockMvcBuilder
Build a MockMvc instance using the given, fully initialized (i.e., refreshed) WebApplicationContext.
The org.springframework.web.servlet.DispatcherServlet will use the context to discover Spring MVC infrastructure and application controllers in it. The context must have been configured with a javax.servlet.ServletContext.