Package org.apache.camel.test.junit4
Class ExchangeTestSupport
- java.lang.Object
-
- org.junit.Assert
-
- org.apache.camel.test.junit4.TestSupport
-
- org.apache.camel.test.junit4.CamelTestSupport
-
- org.apache.camel.test.junit4.ExchangeTestSupport
-
- Direct Known Subclasses:
LanguageTestSupport
@Deprecated public abstract class ExchangeTestSupport extends CamelTestSupport
Deprecated.A base class for a test which requires aCamelContext
and a populatedExchange
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.camel.Exchange
exchange
Deprecated.-
Fields inherited from class org.apache.camel.test.junit4.CamelTestSupport
CAMEL_TEAR_DOWN_RULE, camelContextService, consumer, context, extra, fluentTemplate, ROUTE_COVERAGE_ENABLED, template
-
Fields inherited from class org.apache.camel.test.junit4.TestSupport
log, LS
-
-
Constructor Summary
Constructors Constructor Description ExchangeTestSupport()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected org.apache.camel.Exchange
createExchange()
Deprecated.A factory method to create an Exchange implementationprotected void
populateExchange(org.apache.camel.Exchange exchange)
Deprecated.A strategy method to populate an exchange with some example values for use by language pluginsvoid
setUp()
Deprecated.-
Methods inherited from class org.apache.camel.test.junit4.CamelTestSupport
applyCamelPostProcessor, assertExpression, assertMockEndpointsSatisfied, assertMockEndpointsSatisfied, assertPredicate, assertResolveLanguage, assertValidContext, bindToRegistry, camelContextService, cleanupResources, consumer, context, createCamelContext, createCamelRegistry, createExchangeWithBody, createRouteBuilder, createRouteBuilders, debugAfter, debugBefore, disableJMX, doPostSetup, doPostTearDown, doPreSetup, doSpringBootCheck, enableJMX, fluentTemplate, getCamelContextService, getCamelTestWatcher, getMandatoryEndpoint, getMandatoryEndpoint, getMockEndpoint, getMockEndpoint, getRouteFilterExcludePattern, getRouteFilterIncludePattern, getShutdownTimeout, hasClassAnnotation, ignoreMissingLocationWithPropertiesComponent, isCreateCamelContextPerClass, isDumpRouteCoverage, isLazyLoadingTypeConverter, isMockEndpoints, isMockEndpointsAndSkip, isUseAdviceWith, isUseDebugger, isUseRouteBuilder, postProcessTest, replaceRouteFromWith, resetMocks, resolveMandatoryEndpoint, resolveMandatoryEndpoint, sendBodies, sendBody, sendBody, setCamelContextService, setupResources, setUseRouteBuilder, startCamelContext, stopCamelContext, tearDown, template, useJmx, useOverridePropertiesWithPropertiesComponent
-
Methods inherited from class org.apache.camel.test.junit4.TestSupport
assertCollectionSize, assertCollectionSize, assertDirectoryEquals, assertDirectoryEquals, assertDirectoryExists, assertEndpointUri, assertExpression, assertFileExists, assertFileNotExists, assertInMessageBodyEquals, assertInMessageHeader, assertIsInstanceOf, assertListSize, assertListSize, assertMessageHeader, assertOneElement, assertOutMessageBodyEquals, assertOutMessageHeader, assertPredicate, assertPredicateDoesNotMatch, assertPredicateMatches, assertStringContains, body, bodyAs, createDirectory, createExchangeWithBody, deleteDirectory, deleteDirectory, exchangeProperty, getJavaMajorVersion, getRouteList, getTestMethodName, getTestName, header, isJava15, isJava16, isJava17, isJava18, isJava19, isJavaVendor, isPlatform, property, resolveMandatoryEndpoint, resolveMandatoryEndpoint, systemProperty, systemProperty
-
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail
-
-
-
-
Method Detail
-
createExchange
protected org.apache.camel.Exchange createExchange()
Deprecated.A factory method to create an Exchange implementation
-
populateExchange
protected void populateExchange(org.apache.camel.Exchange exchange)
Deprecated.A strategy method to populate an exchange with some example values for use by language plugins
-
setUp
public void setUp() throws Exception
Deprecated.- Overrides:
setUp
in classCamelTestSupport
- Throws:
Exception
-
-