public static final class AbstractCamelTestNGSpringContextTests.TestNGCamelSpringTestContextLoader
extends org.apache.camel.test.spring.CamelSpringTestContextLoader
| Constructor and Description |
|---|
AbstractCamelTestNGSpringContextTests.TestNGCamelSpringTestContextLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
generateDefaultLocations(Class<?> clazz)
Since
AbstractTestNGSpringContextTests declares the test context as private and
we cannot control its instantiation, we need to use ContextConfiguration on
AbstractCamelTestNGSpringContextTests. |
cleanup, createContext, getResourceSuffix, getTestClass, handleCamelContextStartup, handleDisableJmx, handleLazyLoadTypeConverters, handleMockEndpoints, handleMockEndpointsAndSkip, handleProvidesBreakpoint, handleShutdownTimeout, loadBeanDefinitions, loadBeanDefinitions, loadContext, loadContext, loadContextpublic AbstractCamelTestNGSpringContextTests.TestNGCamelSpringTestContextLoader()
protected String[] generateDefaultLocations(Class<?> clazz)
AbstractTestNGSpringContextTests declares the test context as private and
we cannot control its instantiation, we need to use ContextConfiguration on
AbstractCamelTestNGSpringContextTests. Unfortunately, this also tries to load
the a context resource based on the default naming convention. We don't want to require
end users to always have a resource for their tests' abstract parent so we override
the behavior here to prevent that from happening.generateDefaultLocations in class org.springframework.test.context.support.AbstractContextLoaderApache Camel