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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.test.web.servlet.setup.DefaultMockMvcBuilderacrossContextSetup(AcrossContext acrossContext) Build aMockMvcusing the given, fully bootstrappedAcrossContext.static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilderacrossContextSetup(AcrossContextInfo acrossContextInfo) Build aMockMvcusing the given, fully bootstrappedAcrossContext.static org.springframework.test.web.servlet.setup.DefaultMockMvcBuilderacrossContextSetup(AcrossTestContext acrossTestContext) Build aMockMvcusing 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 aMockMvcusing the given, fully bootstrappedAcrossContext. TheDispatcherServletwill 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 aMockMvcusing the given, fully bootstrappedAcrossContext. TheDispatcherServletwill 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 aMockMvcusing the given, fully bootstrappedAcrossContext. TheDispatcherServletwill use the context to discover Spring MVC infrastructure and application controllers in it. The context must have been configured with aServletContext, ideally aMockAcrossServletContext.
-