Class SpringCustomContextLoader
java.lang.Object
de.hybris.platform.basecommerce.util.SpringCustomContextLoader
based on
TestContext-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidloadApplicationContextByConvention(org.springframework.context.support.GenericApplicationContext globalCtx) voidloadApplicationContexts(org.springframework.context.support.GenericApplicationContext globalCtx) protected String[]retrieveContextLocations(org.springframework.test.context.ContextLoader contextLoader, Class<?> clazz) RetrieveApplicationContextresource locations for the suppliedclass, using the suppliedContextLoadertoprocessthe locations.
-
Constructor Details
-
SpringCustomContextLoader
-
-
Method Details
-
loadApplicationContexts
public void loadApplicationContexts(org.springframework.context.support.GenericApplicationContext globalCtx) throws Exception - Throws:
Exception
-
loadApplicationContextByConvention
public void loadApplicationContextByConvention(org.springframework.context.support.GenericApplicationContext globalCtx) -
retrieveContextLocations
protected String[] retrieveContextLocations(org.springframework.test.context.ContextLoader contextLoader, Class<?> clazz) RetrieveApplicationContextresource locations for the suppliedclass, using the suppliedContextLoadertoprocessthe locations.Note that the
inheritLocationsflag of@ContextConfigurationwill be taken into consideration. Specifically, if theinheritLocationsflag 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:
IllegalArgumentException- if@ContextConfigurationis not present on the supplied class
-