Package org.apache.camel.test.junit5
Class ExchangeTestSupport
- java.lang.Object
-
- org.apache.camel.test.junit5.CamelTestSupport
-
- org.apache.camel.test.junit5.ExchangeTestSupport
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.AfterTestExecutionCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.BeforeTestExecutionCallback,org.junit.jupiter.api.extension.Extension
- Direct Known Subclasses:
LanguageTestSupport
public abstract class ExchangeTestSupport extends CamelTestSupport
A base class for a test which requires aCamelContextand a populatedExchange
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.camel.Exchangeexchange-
Fields inherited from class org.apache.camel.test.junit5.CamelTestSupport
camelContextService, camelTestSupportExtension, consumer, context, extra, fluentTemplate, ROUTE_COVERAGE_ENABLED, template
-
-
Constructor Summary
Constructors Constructor Description ExchangeTestSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.camel.ExchangecreateExchange()A factory method to create an Exchange implementationprotected voidpopulateExchange(org.apache.camel.Exchange exchange)A strategy method to populate an exchange with some example values for use by language pluginsvoidsetUp()-
Methods inherited from class org.apache.camel.test.junit5.CamelTestSupport
afterAll, afterEach, afterTestExecution, applyCamelPostProcessor, assertExpression, assertPredicate, assertResolveLanguage, assertValidContext, beforeAll, beforeEach, beforeTestExecution, bindToRegistry, camelContextService, cleanupResources, consumer, context, createCamelContext, createCamelRegistry, createExchangeWithBody, createRouteBuilder, createRouteBuilders, debugAfter, debugBefore, disableJMX, doPostSetup, doPostTearDown, doPreSetup, doQuarkusCheck, doSetUp, doSpringBootCheck, doStopCamelContext, enableJMX, fluentTemplate, getCamelContextService, getCurrentTestName, getMandatoryEndpoint, getMandatoryEndpoint, getMockEndpoint, getMockEndpoint, getRouteFilterExcludePattern, getRouteFilterIncludePattern, getShutdownTimeout, hasClassAnnotation, ignoreMissingLocationWithPropertiesComponent, isCreateCamelContextPerClass, isDumpRouteCoverage, isMockEndpoints, isMockEndpointsAndSkip, isUseAdviceWith, isUseDebugger, isUseRouteBuilder, postProcessTest, replaceRouteFromWith, resolveMandatoryEndpoint, resolveMandatoryEndpoint, sendBodies, sendBody, sendBody, setCamelContextService, setupResources, setUseRouteBuilder, startCamelContext, stopCamelContext, tearDown, template, timeTaken, useJmx, useOverridePropertiesWithPropertiesComponent
-
-
-
-
Method Detail
-
createExchange
protected org.apache.camel.Exchange createExchange()
A factory method to create an Exchange implementation
-
populateExchange
protected void populateExchange(org.apache.camel.Exchange exchange)
A strategy method to populate an exchange with some example values for use by language plugins
-
setUp
@BeforeEach public void setUp() throws Exception- Overrides:
setUpin classCamelTestSupport- Throws:
Exception
-
-