public class TestRefreshableApplicationContextLoader
extends org.springframework.test.context.support.AbstractContextLoader
AbstractContextLoader
from the Spring TestContext
Framework used to load
a RefreshableAnnotationConfigApplicationContext
.ApplicationContext
,
ConfigurableApplicationContext
,
AnnotationConfigRegistry
,
RefreshableAnnotationConfigApplicationContext
,
ContextConfigurationAttributes
,
MergedContextConfiguration
,
TestContext
,
AbstractContextLoader
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DEFAULT_RESOURCE_SUFFIX |
Constructor and Description |
---|
TestRefreshableApplicationContextLoader() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getResourceSuffix() |
org.springframework.context.ApplicationContext |
loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig) |
org.springframework.context.ApplicationContext |
loadContext(java.lang.String... locations) |
protected org.springframework.context.ConfigurableApplicationContext |
newApplicationContext(org.springframework.test.context.MergedContextConfiguration contextConfiguration)
Constructs a new instance of the
RefreshableAnnotationConfigApplicationContext initialized from
the given {TestContext @link MergedContextConfiguration merged configuration meta-data}. |
void |
processContextConfiguration(org.springframework.test.context.ContextConfigurationAttributes configAttributes) |
protected static final java.lang.String DEFAULT_RESOURCE_SUFFIX
public TestRefreshableApplicationContextLoader()
public void processContextConfiguration(org.springframework.test.context.ContextConfigurationAttributes configAttributes)
processContextConfiguration
in interface org.springframework.test.context.SmartContextLoader
processContextConfiguration
in class org.springframework.test.context.support.AbstractContextLoader
public org.springframework.context.ApplicationContext loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig)
protected org.springframework.context.ConfigurableApplicationContext newApplicationContext(org.springframework.test.context.MergedContextConfiguration contextConfiguration)
RefreshableAnnotationConfigApplicationContext
initialized from
the given {TestContext
@link MergedContextConfiguration merged configuration meta-data}.contextConfiguration
- MergedContextConfiguration
from the TestContext
used to configure
and bootstrap a new RefreshableAnnotationConfigApplicationContext
.ConfigurableApplicationContext
implementation.ConfigurableApplicationContext
,
RefreshableAnnotationConfigApplicationContext
,
MergedContextConfiguration
,
AbstractContextLoader.prepareContext(ConfigurableApplicationContext, MergedContextConfiguration)
public org.springframework.context.ApplicationContext loadContext(java.lang.String... locations)
protected java.lang.String getResourceSuffix()
getResourceSuffix
in class org.springframework.test.context.support.AbstractContextLoader