CamelSpringRunner
or CamelSpringBootRunner
instead.@Deprecated public class CamelSpringDelegatingTestContextLoader extends org.springframework.test.context.support.DelegatingSmartContextLoader
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger
Deprecated.
|
Constructor and Description |
---|
CamelSpringDelegatingTestContextLoader()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getTestClass()
Deprecated.
Returns the class under test in order to enable inspection of annotations while the Spring context is being
created.
|
protected Method |
getTestMethod()
Deprecated.
Returns the test method under test.
|
org.springframework.context.ApplicationContext |
loadContext(org.springframework.context.ConfigurableApplicationContext context,
Class<?> testClass)
Deprecated.
Performs the bulk of the Spring application context loading/customization.
|
org.springframework.context.ApplicationContext |
loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig)
Deprecated.
|
getAnnotationConfigLoader, getXmlLoader
public CamelSpringDelegatingTestContextLoader()
public org.springframework.context.ApplicationContext loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig) throws Exception
loadContext
in interface org.springframework.test.context.SmartContextLoader
loadContext
in class org.springframework.test.context.support.AbstractDelegatingSmartContextLoader
Exception
public org.springframework.context.ApplicationContext loadContext(org.springframework.context.ConfigurableApplicationContext context, Class<?> testClass) throws Exception
context
- the partially configured context. The context should have the bean definitions loaded, but
nothing else.testClass
- the test class being executedException
- if there is an error during initialization/customizationprotected Class<?> getTestClass()
CamelSpringTestHelper
protected Method getTestMethod()
CamelSpringTestHelper
Apache Camel