org.apache.camel.component.test
Class TestEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.mock.MockEndpoint
org.apache.camel.component.test.TestEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, Service, BrowsableEndpoint
public class TestEndpoint
- extends MockEndpoint
- implements Service
A Test Endpoint is a
Mock Endpoint for testing but it will
pull all messages from the nested endpoint and use those as expected message body assertions.
- Version:
- $Revision: 817970 $
Method Summary |
protected Object |
getInBody(Exchange exchange)
This method allows us to convert or coerce the expected message body into some other type |
void |
start()
|
void |
stop()
|
Methods inherited from class org.apache.camel.component.mock.MockEndpoint |
allMessages, assertEquals, assertExchangeReceived, assertIsNotSatisfied, assertIsNotSatisfied, assertIsSatisfied, assertIsSatisfied, assertIsSatisfied, assertIsSatisfied, assertIsSatisfied, assertMessagesAscending, assertMessagesDescending, assertMessagesSorted, assertNoDuplicates, assertTrue, assertWait, await, await, createConsumer, createProducer, expectedBodiesReceived, expectedBodiesReceived, expectedBodiesReceivedInAnyOrder, expectedBodiesReceivedInAnyOrder, expectedBodyReceived, expectedFileExists, expectedFileExists, expectedHeaderReceived, expectedMessageCount, expectedMinimumMessageCount, expectedPropertyReceived, expects, expectsAscending, expectsAscending, expectsDescending, expectsDescending, expectsMessageCount, expectsNoDuplicates, expectsNoDuplicates, fail, getExchanges, getExpectedCount, getExpectedMinimumCount, getFailures, getReceivedCounter, getReceivedExchanges, getReporter, getResultWaitTime, getSleepForEmptyTest, isSingleton, message, onExchange, performAssertions, reset, resolve, setExpectedMessageCount, setMinimumExpectedMessageCount, setMinimumResultWaitTime, setReporter, setResultWaitTime, setSleepForEmptyTest, waitForCompleteLatch, waitForCompleteLatch, whenAnyExchangeReceived, whenExchangeReceived |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString |
TestEndpoint
public TestEndpoint(String endpointUri,
Component component,
Endpoint expectedMessageEndpoint)
start
public void start()
throws Exception
- Specified by:
start
in interface Service
- Throws:
Exception
stop
public void stop()
throws Exception
- Specified by:
stop
in interface Service
- Throws:
Exception
getInBody
protected Object getInBody(Exchange exchange)
- This method allows us to convert or coerce the expected message body into some other type
Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.