public class SpringCustomContextLoader
extends java.lang.Object
org.springframework.test.context.TestContext| Constructor and Description |
|---|
SpringCustomContextLoader(java.lang.Class testClazz) |
| Modifier and Type | Method and Description |
|---|---|
void |
loadApplicationContextByConvention(GenericApplicationContext globalCtx) |
void |
loadApplicationContexts(GenericApplicationContext globalCtx) |
protected java.lang.String[] |
retrieveContextLocations(ContextLoader contextLoader,
java.lang.Class<?> clazz)
Retrieve
org.springframework.context.ApplicationContext resource locations for the supplied class, using the supplied org.springframework.test.context.ContextLoader to
process the locations. |
public SpringCustomContextLoader(java.lang.Class testClazz)
public void loadApplicationContexts(GenericApplicationContext globalCtx)
throws java.lang.Exception
java.lang.Exceptionpublic void loadApplicationContextByConvention(GenericApplicationContext globalCtx)
protected java.lang.String[] retrieveContextLocations(ContextLoader contextLoader,
java.lang.Class<?> clazz)
org.springframework.context.ApplicationContext resource locations for the supplied class, using the supplied org.springframework.test.context.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)java.lang.IllegalArgumentException - if @ContextConfiguration is not
present on the supplied classCopyright © 2018 SAP SE. All Rights Reserved.