Class AcrossMockMvcBuilders

java.lang.Object
com.foreach.across.test.support.AcrossMockMvcBuilders

public class AcrossMockMvcBuilders extends Object
Extends the default MockMvcBuilders with support for creating a DefaultMockMvcBuilder for a fully bootstrapped AcrossContext.
Since:
1.1.2
Author:
Arne Vandamme
  • Constructor Details

    • AcrossMockMvcBuilders

      public AcrossMockMvcBuilders()
  • Method Details

    • acrossContextSetup

      public static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder acrossContextSetup(AcrossContext acrossContext)
      Build a MockMvc using the given, fully bootstrapped AcrossContext. The DispatcherServlet will use the context to discover Spring MVC infrastructure and application controllers in it. The context must have been configured with a ServletContext, ideally a MockAcrossServletContext.
    • acrossContextSetup

      public static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder acrossContextSetup(AcrossTestContext acrossTestContext)
      Build a MockMvc using the given, fully bootstrapped AcrossContext. The DispatcherServlet will use the context to discover Spring MVC infrastructure and application controllers in it. The context must have been configured with a ServletContext, ideally a MockAcrossServletContext.
    • acrossContextSetup

      public static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder acrossContextSetup(AcrossContextInfo acrossContextInfo)
      Build a MockMvc using the given, fully bootstrapped AcrossContext. The DispatcherServlet will use the context to discover Spring MVC infrastructure and application controllers in it. The context must have been configured with a ServletContext, ideally a MockAcrossServletContext.