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 void |
cleanup(Class<?> testClass)
Deprecated.
Cleanup/restore global state to defaults / pre-test values after the test setup
is complete.
|
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, getXmlLoaderpublic CamelSpringDelegatingTestContextLoader()
public org.springframework.context.ApplicationContext loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig)
throws Exception
loadContext in interface org.springframework.test.context.SmartContextLoaderloadContext in class org.springframework.test.context.support.AbstractDelegatingSmartContextLoaderExceptionpublic 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 void cleanup(Class<?> testClass)
testClass - the test class being executedprotected Class<?> getTestClass()
CamelSpringTestHelperprotected Method getTestMethod()
CamelSpringTestHelperApache Camel