Class MockAcrossServletContextInitializer
java.lang.Object
com.foreach.across.test.support.config.MockAcrossServletContextInitializer
- All Implemented Interfaces:
org.springframework.context.ApplicationContextInitializer<org.springframework.web.context.ConfigurableWebApplicationContext>
public class MockAcrossServletContextInitializer
extends Object
implements org.springframework.context.ApplicationContextInitializer<org.springframework.web.context.ConfigurableWebApplicationContext>
ApplicationContextInitializer
to be used in conjunction with
WebAppConfiguration
. This initializer will configure a
MockAcrossServletContext
instead of the default MockServletContext
.- Since:
- 1.1.2
- Author:
- Arne Vandamme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(org.springframework.web.context.ConfigurableWebApplicationContext applicationContext)
-
Constructor Details
-
MockAcrossServletContextInitializer
public MockAcrossServletContextInitializer()
-
-
Method Details
-
initialize
public void initialize(org.springframework.web.context.ConfigurableWebApplicationContext applicationContext) - Specified by:
initialize
in interfaceorg.springframework.context.ApplicationContextInitializer<org.springframework.web.context.ConfigurableWebApplicationContext>
-