Package org.apache.camel.test.junit4
Class LanguageTestSupport
- java.lang.Object
-
- org.junit.Assert
-
- org.apache.camel.test.junit4.TestSupport
-
- org.apache.camel.test.junit4.CamelTestSupport
-
- org.apache.camel.test.junit4.ExchangeTestSupport
-
- org.apache.camel.test.junit4.LanguageTestSupport
-
@Deprecated public abstract class LanguageTestSupport extends ExchangeTestSupport
Deprecated.A useful base class for testing the language plugins in Camel
-
-
Field Summary
-
Fields inherited from class org.apache.camel.test.junit4.ExchangeTestSupport
exchange
-
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 LanguageTestSupport()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
assertExpression(String expressionText, Object expectedValue)
Deprecated.Asserts that this language expression evaluates to the given value on the current exchangeprotected void
assertExpression(String expressionText, String expectedValue, String orThisExpectedValue)
Deprecated.Asserts that the expression evaluates to one of the two given valuesprotected void
assertExpression(org.apache.camel.Exchange exchange, String expressionText, Object expectedValue)
Deprecated.Asserts that this language expression evaluates to the given value on the given exchangeprotected void
assertPredicate(String expression)
Deprecated.Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to trueprotected void
assertPredicate(String expression, boolean expected)
Deprecated.Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to the expected valueprotected void
assertPredicate(org.apache.camel.Exchange exchange, String expression, boolean expected)
Deprecated.protected void
assertPredicateFails(String expression)
Deprecated.Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to falseprotected abstract String
getLanguageName()
Deprecated.-
Methods inherited from class org.apache.camel.test.junit4.ExchangeTestSupport
createExchange, populateExchange, setUp
-
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
-
getLanguageName
protected abstract String getLanguageName()
Deprecated.
-
assertPredicate
protected void assertPredicate(String expression)
Deprecated.Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to true
-
assertPredicateFails
protected void assertPredicateFails(String expression)
Deprecated.Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to false
-
assertPredicate
protected void assertPredicate(String expression, boolean expected)
Deprecated.Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to the expected value
-
assertPredicate
protected void assertPredicate(org.apache.camel.Exchange exchange, String expression, boolean expected)
Deprecated.
-
assertExpression
protected void assertExpression(org.apache.camel.Exchange exchange, String expressionText, Object expectedValue)
Deprecated.Asserts that this language expression evaluates to the given value on the given exchange
-
assertExpression
protected void assertExpression(String expressionText, Object expectedValue)
Deprecated.Asserts that this language expression evaluates to the given value on the current exchange
-
-