org.apache.camel.test
Class LanguageTestSupport

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.camel.test.TestSupport
              extended by org.apache.camel.test.CamelTestSupport
                  extended by org.apache.camel.test.ExchangeTestSupport
                      extended by org.apache.camel.test.LanguageTestSupport
All Implemented Interfaces:
junit.framework.Test

Deprecated. Support for JUnit 3.x is slated for removal in Camel 3.x. You are encouraged to move to JUnit 4.x based tests. See LanguageTestSupport.

@Deprecated
public abstract class LanguageTestSupport
extends ExchangeTestSupport

A useful base class for testing the language plugins in Camel


Field Summary
 
Fields inherited from class org.apache.camel.test.ExchangeTestSupport
exchange
 
Fields inherited from class org.apache.camel.test.CamelTestSupport
consumer, context, template
 
Fields inherited from class org.apache.camel.test.TestSupport
log, LS
 
Constructor Summary
LanguageTestSupport()
          Deprecated.  
 
Method Summary
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
protected  void assertExpression(String expressionText, Object expectedValue)
          Deprecated. Asserts that this language expression evaluates to the given value on the current exchange
protected  void assertExpression(String expressionText, String expectedValue, String orThisExpectedValue)
          Deprecated. Asserts that the expression evaluates to one of the two given values
protected  void assertPredicate(org.apache.camel.Exchange exchange, String expression, boolean expected)
          Deprecated.  
protected  void assertPredicate(String expression)
          Deprecated. Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to true
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
protected  void assertPredicateFails(String expression)
          Deprecated. Asserts that the given predicate expression evaluated on the current language and message exchange evaluates to false
protected abstract  String getLanguageName()
          Deprecated.  
 
Methods inherited from class org.apache.camel.test.ExchangeTestSupport
createExchange, populateExchange, setUp
 
Methods inherited from class org.apache.camel.test.CamelTestSupport
assertExpression, assertMockEndpointsSatisfied, assertMockEndpointsSatisfied, assertPredicate, assertResolveLanguage, assertValidContext, createCamelContext, createExchangeWithBody, createJndiContext, createRegistry, createRouteBuilder, createRouteBuilders, debugAfter, debugBefore, disableJMX, enableJMX, getCamelContextService, getMandatoryEndpoint, getMandatoryEndpoint, getMockEndpoint, getShutdownTimeout, isLazyLoadingTypeConverter, isMockEndpoints, isUseAdviceWith, isUseDebugger, isUseRouteBuilder, postProcessTest, resetMocks, resolveMandatoryEndpoint, resolveMandatoryEndpoint, sendBodies, sendBody, sendBody, setCamelContextService, setUseRouteBuilder, startCamelContext, stopCamelContext, tearDown, useJmx
 
Methods inherited from class org.apache.camel.test.TestSupport
assertCollectionSize, assertCollectionSize, assertDirectoryEquals, assertDirectoryEquals, assertEndpointUri, assertExpression, assertFileExists, assertFileNotExists, assertInMessageBodyEquals, assertInMessageHeader, assertIsInstanceOf, assertListSize, assertListSize, assertMessageHeader, assertOneElement, assertOutMessageBodyEquals, assertOutMessageHeader, assertPredicate, assertPredicateDoesNotMatch, assertPredicateMatches, assertStringContains, body, bodyAs, canRunOnThisPlatform, createDirectory, createExchangeWithBody, deleteDirectory, deleteDirectory, faultBody, faultBodyAs, getRouteList, getTestMethodName, header, isJava15, isJavaVendor, isPlatform, outBody, outBodyAs, property, resolveMandatoryEndpoint, resolveMandatoryEndpoint, runBare, systemProperty, systemProperty, unwrap, unwrapChannel
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LanguageTestSupport

public LanguageTestSupport()
Deprecated. 
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


assertExpression

protected void assertExpression(String expressionText,
                                String expectedValue,
                                String orThisExpectedValue)
Deprecated. 
Asserts that the expression evaluates to one of the two given values



Apache CAMEL