Interface DataSet
-
- All Known Implementing Classes:
DataSetSupport,FileDataSet,ListDataSet,SimpleDataSet
public interface DataSetRepresents a strategy for testing endpoints with canned data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidassertMessageExpected(DataSetEndpoint endpoint, org.apache.camel.Exchange expected, org.apache.camel.Exchange actual, long messageIndex)Asserts that the expected message has been received for the given indexlonggetReportCount()Returns the number of messages which should be received before reporting on the progress of the testlonggetSize()Returns the size of the datasetvoidpopulateMessage(org.apache.camel.Exchange exchange, long messageIndex)Populates a message exchange when using the DataSet as a source of messages
-
-
-
Method Detail
-
populateMessage
void populateMessage(org.apache.camel.Exchange exchange, long messageIndex) throws ExceptionPopulates a message exchange when using the DataSet as a source of messages- Throws:
Exception
-
getSize
long getSize()
Returns the size of the dataset
-
assertMessageExpected
void assertMessageExpected(DataSetEndpoint endpoint, org.apache.camel.Exchange expected, org.apache.camel.Exchange actual, long messageIndex) throws Exception
Asserts that the expected message has been received for the given index- Throws:
Exception
-
getReportCount
long getReportCount()
Returns the number of messages which should be received before reporting on the progress of the test
-
-