public static final class AbstractCamelTestNGSpringContextTests.TestNGCamelSpringTestContextLoader
extends org.apache.camel.test.spring.CamelSpringTestContextLoader
| Constructor and Description |
|---|
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, getTestMethod, handleCamelContextStartup, handleDisableJmx, handleMockEndpoints, handleMockEndpointsAndSkip, handleProvidesBreakpoint, handleShutdownTimeout, handleUseOverridePropertiesWithPropertiesComponent, loadBeanDefinitions, loadBeanDefinitions, loadContext, loadContext, loadContextprotected 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