/** * Build a {@link MockMvc} instance using the given, fully initialized * (i.e., <em>refreshed</em>) {@link WebApplicationContext}. * <p>The {@link org.springframework.web.servlet.DispatcherServlet DispatcherServlet} * will use the context to discover Spring MVC infrastructure and application * controllers in it. The context must have been configured with a * {@link javax.servlet.ServletContext ServletContext}. */ public static DefaultMockMvcBuilder webAppContextSetup(WebApplicationContext context) { return new DefaultMockMvcBuilder(context); }
/** * Build a {@link MockMvc} instance using the given, fully initialized * (i.e., <em>refreshed</em>) {@link WebApplicationContext}. * <p>The {@link org.springframework.web.servlet.DispatcherServlet DispatcherServlet} * will use the context to discover Spring MVC infrastructure and application * controllers in it. The context must have been configured with a * {@link javax.servlet.ServletContext ServletContext}. */ public static DefaultMockMvcBuilder webAppContextSetup(WebApplicationContext context) { return new DefaultMockMvcBuilder(context); }
/** * Build a {@link MockMvc} instance using the given, fully initialized * (i.e., <em>refreshed</em>) {@link WebApplicationContext}. * <p>The {@link org.springframework.web.servlet.DispatcherServlet DispatcherServlet} * will use the context to discover Spring MVC infrastructure and application * controllers in it. The context must have been configured with a * {@link javax.servlet.ServletContext ServletContext}. */ public static DefaultMockMvcBuilder webAppContextSetup(WebApplicationContext context) { return new DefaultMockMvcBuilder(context); }