A B C D E F G H I L O P R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- after() - Method in class org.apache.camel.test.junit4.CamelTearDownRule
- apply(String) - Method in class org.apache.camel.test.AvailablePortFinderPropertiesFunction
- applyCamelPostProcessor() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Applies the
CamelBeanPostProcessorto this instance. - assertCollectionSize(String, Collection<T>, int) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that a list is of the given size
- assertCollectionSize(Collection<T>, int) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that a list is of the given size
- assertDirectoryEquals(String, String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
To be used for folder/directory comparison that works across different platforms such as Window, Mac and Linux.
- assertDirectoryEquals(String, String, String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
To be used for folder/directory comparison that works across different platforms such as Window, Mac and Linux.
- assertDirectoryExists(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
To be used to check is a directory is found in the file system
- assertEndpointUri(Endpoint, String) - Static method in class org.apache.camel.test.junit4.TestSupport
- assertExpression(String, Object) - Method in class org.apache.camel.test.junit4.LanguageTestSupport
-
Asserts that this language expression evaluates to the given value on the current exchange
- assertExpression(String, String, String) - Method in class org.apache.camel.test.junit4.LanguageTestSupport
-
Asserts that the expression evaluates to one of the two given values
- assertExpression(Exchange, String, Object) - Method in class org.apache.camel.test.junit4.LanguageTestSupport
-
Asserts that this language expression evaluates to the given value on the given exchange
- assertExpression(Exchange, String, String, Object) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Asserts that the given language name and expression evaluates to the given value on a specific exchange
- assertExpression(Expression, Exchange, Object) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that the given expression when evaluated returns the given answer
- assertFileExists(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
To be used to check is a file is found in the file system
- assertFileNotExists(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
To be used to check is a file is not found in the file system
- assertInMessageBodyEquals(Exchange, Object) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that the given exchange has an OUT message of the given body value
- assertInMessageHeader(Exchange, String, Object) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts the In message on the exchange contains the expected value
- assertIsInstanceOf(Class<T>, Object) - Static method in class org.apache.camel.test.junit4.TestSupport
- assertListSize(String, List<T>, int) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that a list is of the given size
- assertListSize(List<T>, int) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that a list is of the given size
- assertMessageHeader(Message, String, Object) - Static method in class org.apache.camel.test.junit4.TestSupport
- assertMockEndpointsSatisfied() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Asserts that all the expectations of the Mock endpoints are valid
- assertMockEndpointsSatisfied(long, TimeUnit) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Asserts that all the expectations of the Mock endpoints are valid
- assertOneElement(List<T>) - Static method in class org.apache.camel.test.junit4.TestSupport
- assertOutMessageBodyEquals(Exchange, Object) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that the given exchange has an OUT message of the given body value
- assertOutMessageHeader(Exchange, String, Object) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts the Out message on the exchange contains the expected value
- assertPredicate(String) - Method in class org.apache.camel.test.junit4.LanguageTestSupport
-
Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to true
- assertPredicate(String, boolean) - Method in class org.apache.camel.test.junit4.LanguageTestSupport
-
Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to the expected value
- assertPredicate(String, String, Exchange, boolean) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Asserts that the given language name and predicate expression evaluates to the expected value on the message exchange
- assertPredicate(Exchange, String, boolean) - Method in class org.apache.camel.test.junit4.LanguageTestSupport
- assertPredicate(Predicate, Exchange, boolean) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that the predicate returns the expected value on the exchange
- assertPredicateDoesNotMatch(Predicate, Exchange) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that the predicate returns the expected value on the exchange
- assertPredicateFails(String) - Method in class org.apache.camel.test.junit4.LanguageTestSupport
-
Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to false
- assertPredicateMatches(Predicate, Exchange) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that the predicate returns the expected value on the exchange
- assertResolveLanguage(String) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Asserts that the language name can be resolved
- assertStringContains(String, String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Asserts that the text contains the given string
- assertValidContext(CamelContext) - Method in class org.apache.camel.test.junit4.CamelTestSupport
- AvailablePortFinder - Class in org.apache.camel.test
-
Finds currently available server ports.
- AvailablePortFinderPropertiesFunction - Class in org.apache.camel.test
-
A
PropertiesFunctionthat reserves network ports and place them in a cache for reuse. - AvailablePortFinderPropertiesFunction() - Constructor for class org.apache.camel.test.AvailablePortFinderPropertiesFunction
B
- before() - Method in class org.apache.camel.test.junit4.CamelTearDownRule
- bindToRegistry(Registry) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Allows to bind custom beans to the Camel
Registry. - body() - Static method in class org.apache.camel.test.junit4.TestSupport
-
Returns a predicate and value builder for the inbound body on an exchange
- bodyAs(Class<T>) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Returns a predicate and value builder for the inbound message body as a specific type
C
- CAMEL_TEAR_DOWN_RULE - Static variable in class org.apache.camel.test.junit4.CamelTestSupport
- camelContextService - Variable in class org.apache.camel.test.junit4.CamelTestSupport
- camelContextService() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- CamelTearDownRule - Class in org.apache.camel.test.junit4
-
A JUnit rule to tear down Camel when using createCamelContextPerClass=true.
- CamelTearDownRule(ThreadLocal<CamelTestSupport>) - Constructor for class org.apache.camel.test.junit4.CamelTearDownRule
- CamelTestSupport - Class in org.apache.camel.test.junit4
-
A useful base class which creates a
CamelContextwith some routes along with aProducerTemplatefor use in the test case Do not use this class for Spring Boot testing, instead use@RunWith(CamelSpringBootRunner.class). - CamelTestSupport() - Constructor for class org.apache.camel.test.junit4.CamelTestSupport
- CamelTestWatcher - Class in org.apache.camel.test.junit4
-
A JUnit
TestWatcherthat is used to time how long the test takes. - CamelTestWatcher() - Constructor for class org.apache.camel.test.junit4.CamelTestWatcher
- cleanupResources() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Strategy to perform resources cleanup, after
CamelContextis stopped - consumer - Variable in class org.apache.camel.test.junit4.CamelTestSupport
- consumer() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- context - Variable in class org.apache.camel.test.junit4.CamelTestSupport
- context() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- createCamelContext() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- createCamelRegistry() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Override to use a custom
Registry. - createDirectory(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
create the directory
- createExchange() - Method in class org.apache.camel.test.junit4.ExchangeTestSupport
-
A factory method to create an Exchange implementation
- createExchangeWithBody(Object) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Creates an exchange with the given body
- createExchangeWithBody(CamelContext, Object) - Method in class org.apache.camel.test.junit4.TestSupport
-
Creates an exchange with the given body
- createRouteBuilder() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Factory method which derived classes can use to create a
RouteBuilderto define the routes for testing - createRouteBuilders() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Factory method which derived classes can use to create an array of
RouteBuilders to define the routes for testing
D
- debugAfter(Exchange, Processor, ProcessorDefinition<?>, String, String, long) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Single step debugs and Camel invokes this method after processing the given processor
- debugBefore(Exchange, Processor, ProcessorDefinition<?>, String, String) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Single step debugs and Camel invokes this method before entering the given processor
- deleteDirectory(File) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Recursively delete a directory, useful to zapping test data
- deleteDirectory(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Recursively delete a directory, useful to zapping test data
- disableJMX() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Disables the JMX agent.
- doPostSetup() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Strategy to perform any post setup after
CamelContextis created - doPostTearDown() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Strategy to perform any post action, after
CamelContextis stopped - doPreSetup() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Strategy to perform any pre setup, before
CamelContextis created - doSpringBootCheck() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Detects if this is a Spring-Boot test and throws an exception, as these base classes is not intended for testing Camel on Spring Boot.
E
- enableJMX() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Enables the JMX agent.
- exchange - Variable in class org.apache.camel.test.junit4.ExchangeTestSupport
- exchangeProperty(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Returns a value builder for the given exchange property
- ExchangeTestSupport - Class in org.apache.camel.test.junit4
-
A base class for a test which requires a
CamelContextand a populatedExchange - ExchangeTestSupport() - Constructor for class org.apache.camel.test.junit4.ExchangeTestSupport
- ExcludingPackageScanClassResolver - Class in org.apache.camel.test
- ExcludingPackageScanClassResolver() - Constructor for class org.apache.camel.test.ExcludingPackageScanClassResolver
- extra - Variable in class org.apache.camel.test.junit4.CamelTestSupport
F
- finished(Description) - Method in class org.apache.camel.test.junit4.CamelTestWatcher
- fluentTemplate - Variable in class org.apache.camel.test.junit4.CamelTestSupport
- fluentTemplate() - Method in class org.apache.camel.test.junit4.CamelTestSupport
G
- getCamelContextService() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- getCamelTestWatcher() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- getJavaMajorVersion() - Static method in class org.apache.camel.test.junit4.TestSupport
-
Returns the current major Java version e.g 8.
- getLanguageName() - Method in class org.apache.camel.test.junit4.LanguageTestSupport
- getMandatoryEndpoint(String) - Method in class org.apache.camel.test.junit4.CamelTestSupport
- getMandatoryEndpoint(String, Class<T>) - Method in class org.apache.camel.test.junit4.CamelTestSupport
- getMockEndpoint(String) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Resolves the mandatory Mock endpoint using a URI of the form
mock:someName - getMockEndpoint(String, boolean) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Resolves the
MockEndpointusing a URI of the formmock:someName, optionally creating it if it does not exist. - getName() - Method in class org.apache.camel.test.AvailablePortFinderPropertiesFunction
- getNextAvailable() - Static method in class org.apache.camel.test.AvailablePortFinder
-
Gets the next available port.
- getNextAvailable(int, int) - Static method in class org.apache.camel.test.AvailablePortFinder
-
Gets the next available port in the given range.
- getRouteFilterExcludePattern() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Used for filtering routes routes matching the given pattern, which follows the following rules:
- getRouteFilterIncludePattern() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Used for filtering routes routes matching the given pattern, which follows the following rules:
- getRouteList(RouteBuilder) - Static method in class org.apache.camel.test.junit4.TestSupport
-
A helper method to create a list of Route objects for a given route builder
- getShutdownTimeout() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Returns the timeout to use when shutting down (unit in seconds).
- getTestMethodName() - Method in class org.apache.camel.test.junit4.TestSupport
-
Gets the current test method name
- getTestName() - Method in class org.apache.camel.test.junit4.TestSupport
-
Gets the current test name
H
- hasClassAnnotation(String...) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Does this test class have any of the following annotations on the class-level.
- header(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Returns a value builder for the given header
I
- ignoreMissingLocationWithPropertiesComponent() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Whether to ignore missing locations with the
PropertiesComponent. - isCreateCamelContextPerClass() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Override to control whether
CamelContextshould be setup per test or per class. - isDumpRouteCoverage() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Whether to dump route coverage stats at the end of the test.
- isJava15() - Static method in class org.apache.camel.test.junit4.TestSupport
-
Deprecated.will be removed in the future as Camel requires JDK1.8+
- isJava16() - Static method in class org.apache.camel.test.junit4.TestSupport
-
Deprecated.will be removed in the future as Camel requires JDK1.8+
- isJava17() - Static method in class org.apache.camel.test.junit4.TestSupport
-
Deprecated.will be removed in the future as Camel requires JDK1.8+
- isJava18() - Static method in class org.apache.camel.test.junit4.TestSupport
-
Is this Java 1.8
- isJava19() - Static method in class org.apache.camel.test.junit4.TestSupport
-
Is this Java 1.9
- isJavaVendor(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Is this Java by the given vendor.
- isLazyLoadingTypeConverter() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Deprecated.
- isMockEndpoints() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Override to enable auto mocking endpoints based on the pattern.
- isMockEndpointsAndSkip() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Override to enable auto mocking endpoints based on the pattern, and skip sending to original endpoint.
- isPlatform(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Is this OS the given platform.
- isUseAdviceWith() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Override when using advice with and return true.
- isUseDebugger() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Override to enable debugger
- isUseRouteBuilder() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Use the RouteBuilder or not
L
- LanguageTestSupport - Class in org.apache.camel.test.junit4
-
A useful base class for testing the language plugins in Camel
- LanguageTestSupport() - Constructor for class org.apache.camel.test.junit4.LanguageTestSupport
- log - Variable in class org.apache.camel.test.junit4.TestSupport
- LS - Static variable in class org.apache.camel.test.junit4.TestSupport
O
- org.apache.camel.test - package org.apache.camel.test
- org.apache.camel.test.junit4 - package org.apache.camel.test.junit4
P
- populateExchange(Exchange) - Method in class org.apache.camel.test.junit4.ExchangeTestSupport
-
A strategy method to populate an exchange with some example values for use by language plugins
- postProcessTest() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- property(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Deprecated.
R
- replaceRouteFromWith(String, String) - Method in class org.apache.camel.test.junit4.CamelTestSupport
- resetCounters() - Static method in class org.apache.camel.test.TestSupportNodeIdFactory
-
Start tests with fresh counters
- resetMocks() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Reset all Mock endpoints.
- resolveMandatoryEndpoint(String) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Resolves a mandatory endpoint for the given URI or an exception is thrown
- resolveMandatoryEndpoint(String, Class<T>) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Resolves a mandatory endpoint for the given URI and expected type or an exception is thrown
- resolveMandatoryEndpoint(CamelContext, String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Resolves an endpoint and asserts that it is found
- resolveMandatoryEndpoint(CamelContext, String, Class<T>) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Resolves an endpoint and asserts that it is found
- ROUTE_COVERAGE_ENABLED - Static variable in class org.apache.camel.test.junit4.CamelTestSupport
-
JVM system property which can be set to true to turn on dumping route coverage statistics.
S
- sendBodies(String, Object...) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Sends messages to the given endpoint for each of the specified bodies
- sendBody(String, Object) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Sends a message to the given endpoint URI with the body value
- sendBody(String, Object, Map<String, Object>) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Sends a message to the given endpoint URI with the body value and specified headers
- setCamelContextService(Service) - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Allows a service to be registered a separate lifecycle service to start and stop the context; such as for Spring when the ApplicationContext is started and stopped, rather than directly stopping the CamelContext
- setExcludedClasses(Set<Class<?>>) - Method in class org.apache.camel.test.ExcludingPackageScanClassResolver
- setUp() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- setUp() - Method in class org.apache.camel.test.junit4.ExchangeTestSupport
- setupResources() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Strategy to perform resources setup, before
CamelContextis created - setUseRouteBuilder(boolean) - Method in class org.apache.camel.test.junit4.CamelTestSupport
- startCamelContext() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- starting(Description) - Method in class org.apache.camel.test.junit4.CamelTestWatcher
- stopCamelContext() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- systemProperty(String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Returns a value builder for the given system property
- systemProperty(String, String) - Static method in class org.apache.camel.test.junit4.TestSupport
-
Returns a value builder for the given system property
T
- tearDown() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- template - Variable in class org.apache.camel.test.junit4.CamelTestSupport
- template() - Method in class org.apache.camel.test.junit4.CamelTestSupport
- TestSupport - Class in org.apache.camel.test.junit4
-
A bunch of useful testing methods
- TestSupport() - Constructor for class org.apache.camel.test.junit4.TestSupport
- TestSupportNodeIdFactory - Class in org.apache.camel.test
- TestSupportNodeIdFactory() - Constructor for class org.apache.camel.test.TestSupportNodeIdFactory
- timeTaken() - Method in class org.apache.camel.test.junit4.CamelTestWatcher
U
- useJmx() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Whether or not JMX should be used during testing.
- useOverridePropertiesWithPropertiesComponent() - Method in class org.apache.camel.test.junit4.CamelTestSupport
-
Override this method to include and override properties with the Camel
PropertiesComponent.
All Classes All Packages