Class SpringCustomContextLoader
- java.lang.Object
-
- de.hybris.platform.b2b.testframework.SpringCustomContextLoader
-
public class SpringCustomContextLoader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SpringCustomContextLoader(java.lang.Class testClazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
loadApplicationContexts(org.springframework.context.support.GenericApplicationContext globalCtx)
protected java.lang.String[]
retrieveContextLocations(org.springframework.test.context.ContextLoader contextLoader, java.lang.Class<?> clazz)
RetrieveApplicationContext
resource locations for the suppliedclass
, using the suppliedContextLoader
toprocess
the locations.
-
-
-
Method Detail
-
loadApplicationContexts
public void loadApplicationContexts(org.springframework.context.support.GenericApplicationContext globalCtx)
-
retrieveContextLocations
protected java.lang.String[] retrieveContextLocations(org.springframework.test.context.ContextLoader contextLoader, java.lang.Class<?> clazz)
RetrieveApplicationContext
resource locations for the suppliedclass
, using the suppliedContextLoader
toprocess
the locations.Note that the
inheritLocations
flag of@ContextConfiguration
will be taken into consideration. Specifically, if theinheritLocations
flag is set totrue
, locations defined in the annotated class will be appended to the locations defined in superclasses.- Parameters:
contextLoader
- the ContextLoader to use for processing the locations (must not benull
)clazz
- the class for which to retrieve the resource locations (must not benull
)- Returns:
- the list of ApplicationContext resource locations for the specified class, including locations from superclasses if appropriate
- Throws:
java.lang.IllegalArgumentException
- if@ContextConfiguration
is not present on the supplied class
-
-