public class CamelSpringDelegatingTestContextLoader
extends org.springframework.test.context.support.DelegatingSmartContextLoader
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
CamelSpringDelegatingTestContextLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(Class<?> testClass)
Cleanup/restore global state to defaults / pre-test values after the test setup
is complete.
|
protected Class<?> |
getTestClass()
Returns the class under test in order to enable inspection of annotations while the
Spring context is being created.
|
org.springframework.context.ApplicationContext |
loadContext(org.springframework.context.ConfigurableApplicationContext context,
Class<?> testClass)
Performs the bulk of the Spring application context loading/customization.
|
org.springframework.context.ApplicationContext |
loadContext(org.springframework.test.context.MergedContextConfiguration mergedConfig) |
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 void cleanup(Class<?> testClass)
testClass
- the test class being executedprotected Class<?> getTestClass()
CamelSpringTestHelper
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.