org.apache.camel.test
Class ExchangeTestSupport

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
All Implemented Interfaces:
junit.framework.Test

public abstract class ExchangeTestSupport
extends CamelTestSupport

A base class for a test which requires a CamelContext and a populated Exchange

Version:

Field Summary
protected  Exchange exchange
           
 
Fields inherited from class org.apache.camel.test.CamelTestSupport
consumer, context, template
 
Fields inherited from class org.apache.camel.test.TestSupport
log
 
Constructor Summary
ExchangeTestSupport()
           
 
Method Summary
protected  Exchange createExchange()
          A factory method to create an Exchange implementation
protected  void populateExchange(Exchange exchange)
          A strategy method to populate an exchange with some example values for use by language plugins
protected  void 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, isMockEndpoints, 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, 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
 

Field Detail

exchange

protected Exchange exchange
Constructor Detail

ExchangeTestSupport

public ExchangeTestSupport()
Method Detail

createExchange

protected Exchange createExchange()
A factory method to create an Exchange implementation


populateExchange

protected void populateExchange(Exchange exchange)
A strategy method to populate an exchange with some example values for use by language plugins


setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class CamelTestSupport
Throws:
Exception


Apache CAMEL