...
Method Name | Description | Default Behavior | ||
---|---|---|---|---|
boolean isUseRouteBuilder() | If the route builders from returned from createRouteBuilder() or createRouteBuilders() should be added to the CamelContext used in the test should be started. | Returns true. createRouteBuilder() or createRouteBuilders() are invoked and the CamelContext is started automatically. | ||
boolean isUseAdviceWith() | If the CamelContext use in the test should be automatically started before test methods are invoked.
| Returns false. the CamelContext is started automatically before test methods are invoked. | ||
boolean isCreateCamelContextPerClass() | See Setup CamelContext once per class, or per every test method. | The CamelContext and routes are recreated for each test method. | ||
String isMockEndpoints() | Triggers the auto-mocking of endpoints whose URIs match the provided filter. The default filter is null which disables this feature. Return "*" to match all endpoints. See org.apache.camel.impl.InterceptSendToMockEndpointStrategy for more details on the registration of the mock endpoints. | Disabled | ||
boolean isUseDebugger() | If this method returns true, the debugBefore(Exchange exchange, Processor processor, ProcessorDefinition<?> definition, String id, String label) and | Disabled. The methods are not invoked during the test. | ||
int getShutdownTimeout() | Returns the number of seconds that Camel should wait for graceful shutdown. Useful for decreasing test times when a message is still in flight at the end of the test. | Returns 10 seconds. | ||
boolean useJmx() | If JMX should be disabled on the CamelContext used in the test. | JMX is disabled. | ||
JndiRegistry createRegistry() | Provides a hook for adding objects into the registry. Override this method to bind objects to the registry before test methods are invoked. | An empty registry is initialized. | ||
useOverridePropertiesWithPropertiesComponent | Camel 2.10: Allows to add/override properties when Using PropertyPlaceholder in Camel. | null | ||
ignoreMissingLocationWithPropertiesComponent | Camel 2.10: Allows to control if Camel should ignore missing locations for properties. | null |
JNDI
Camel uses a Registry to allow you to configure Component or Endpoint instances or Beans used in your routes. If you are not using Spring or OSGi then JNDI is used as the default registry implementation.
...