Package com.foreach.across.test.support
Class AcrossMockMvcBuilders
java.lang.Object
com.foreach.across.test.support.AcrossMockMvcBuilders
Extends the default
MockMvcBuilders
with support for creating a DefaultMockMvcBuilder
for a fully bootstrapped AcrossContext
.- Since:
- 1.1.2
- Author:
- Arne Vandamme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
acrossContextSetup
(AcrossContext acrossContext) Build aMockMvc
using the given, fully bootstrappedAcrossContext
.static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
acrossContextSetup
(AcrossContextInfo acrossContextInfo) Build aMockMvc
using the given, fully bootstrappedAcrossContext
.static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder
acrossContextSetup
(AcrossTestContext acrossTestContext) Build aMockMvc
using the given, fully bootstrappedAcrossContext
.
-
Constructor Details
-
AcrossMockMvcBuilders
public AcrossMockMvcBuilders()
-
-
Method Details
-
acrossContextSetup
public static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder acrossContextSetup(AcrossContext acrossContext) Build aMockMvc
using the given, fully bootstrappedAcrossContext
. TheDispatcherServlet
will use the context to discover Spring MVC infrastructure and application controllers in it. The context must have been configured with aServletContext
, ideally aMockAcrossServletContext
. -
acrossContextSetup
public static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder acrossContextSetup(AcrossTestContext acrossTestContext) Build aMockMvc
using the given, fully bootstrappedAcrossContext
. TheDispatcherServlet
will use the context to discover Spring MVC infrastructure and application controllers in it. The context must have been configured with aServletContext
, ideally aMockAcrossServletContext
. -
acrossContextSetup
public static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder acrossContextSetup(AcrossContextInfo acrossContextInfo) Build aMockMvc
using the given, fully bootstrappedAcrossContext
. TheDispatcherServlet
will use the context to discover Spring MVC infrastructure and application controllers in it. The context must have been configured with aServletContext
, ideally aMockAcrossServletContext
.
-