public class SpringCustomContextLoader extends Object
| Constructor and Description |
|---|
SpringCustomContextLoader(Class testClazz) |
| Modifier and Type | Method and Description |
|---|---|
void |
loadApplicationContexts(GenericApplicationContext globalCtx) |
protected String[] |
retrieveContextLocations(ContextLoader contextLoader,
Class<?> clazz)
Retrieve
ApplicationContext resource locations for the supplied class, using the supplied ContextLoader to
process the locations. |
public SpringCustomContextLoader(Class testClazz)
public void loadApplicationContexts(GenericApplicationContext globalCtx)
protected String[] retrieveContextLocations(ContextLoader contextLoader, Class<?> clazz)
ApplicationContext resource locations for the supplied class, using the supplied ContextLoader to
process the locations.
Note that the inheritLocations
flag of @ContextConfiguration will be taken into
consideration. Specifically, if the inheritLocations flag is set to true, locations
defined in the annotated class will be appended to the locations defined in superclasses.
contextLoader - the ContextLoader to use for processing the locations (must not be null)clazz - the class for which to retrieve the resource locations (must not be null)IllegalArgumentException - if @ContextConfiguration is not
present on the supplied classCopyright © 2017 SAP SE. All Rights Reserved.