Package org.apache.camel.test.junit5
Class ExchangeTestSupport
java.lang.Object
org.apache.camel.test.junit5.AbstractTestSupport
org.apache.camel.test.junit5.CamelTestSupport
org.apache.camel.test.junit5.ExchangeTestSupport
- All Implemented Interfaces:
CommonTestSupport,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
A base class for a test which requires a
CamelContext and a populated Exchange-
Field Summary
FieldsFields inherited from class org.apache.camel.test.junit5.CamelTestSupport
camelTestSupportExtension, testLoggerExtensionFields inherited from class org.apache.camel.test.junit5.AbstractTestSupport
camelContextConfiguration, consumer, context, fluentTemplate, template, testConfigurationBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.camel.ExchangeA 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()Common test setup.Methods inherited from class org.apache.camel.test.junit5.CamelTestSupport
afterAll, afterEach, afterTestExecution, applyCamelPostProcessor, assertExpression, assertPredicate, assertResolveLanguage, assertValidContext, beforeAll, beforeEach, beforeTestExecution, bindToRegistry, createCamelContext, createCamelRegistry, createExchangeWithBody, createRouteBuilder, createRouteBuilders, debugAfter, debugBefore, doPostSetup, doPostTearDown, doPreSetup, doQuarkusCheck, doSetUp, doSpringBootCheck, getCurrentTestName, getMandatoryEndpoint, getMandatoryEndpoint, getMockEndpoint, getMockEndpoint, getShutdownTimeout, hasClassAnnotation, postProcessTest, resolveMandatoryEndpoint, resolveMandatoryEndpoint, sendBodies, sendBody, sendBody, startCamelContext, stopCamelContext, tearDown, timeTaken, unsupportedCheckMethods inherited from class org.apache.camel.test.junit5.AbstractTestSupport
camelContextConfiguration, camelContextService, cleanupResources, consumer, context, disableJMX, enableJMX, fluentTemplate, getCamelContextService, getRouteFilterExcludePattern, getRouteFilterIncludePattern, ignoreMissingLocationWithPropertiesComponent, isCreateCamelContextPerClass, isDumpRouteCoverage, isMockEndpoints, isMockEndpointsAndSkip, isRouteCoverageEnabled, isUseAdviceWith, isUseDebugger, isUseRouteBuilder, replaceRouteFromWith, setCamelContextService, setContext, setupResources, setUseRouteBuilder, template, testConfiguration, useJmx, useOverridePropertiesWithPropertiesComponent
-
Field Details
-
exchange
protected org.apache.camel.Exchange exchange
-
-
Constructor Details
-
ExchangeTestSupport
public ExchangeTestSupport()
-
-
Method Details
-
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
Description copied from class:CamelTestSupportCommon test setup. For internal use.- Overrides:
setUpin classCamelTestSupport- Throws:
Exception- if unable to setup the test
-