org.apache.camel.component.dataset
Interface DataSet

All Known Implementing Classes:
DataSetSupport, SimpleDataSet

public interface DataSet

Represents a strategy for testing endpoints with canned data.

Version:
$Revision: 37863 $

Field Summary
static String INDEX_HEADER
           
 
Method Summary
 void assertMessageExpected(DataSetEndpoint dataSetEndpoint, Exchange expected, Exchange actual, long index)
          Asserts that the expected message has been received for the given index
 long getReportCount()
          Returns the number of messages which should be received before reporting on the progress of the test
 long getSize()
          Returns the size of the dataset
 void populateMessage(Exchange exchange, long messageIndex)
          Populates a message exchange when using the DataSet as a source of messages
 

Field Detail

INDEX_HEADER

static final String INDEX_HEADER
See Also:
Constant Field Values
Method Detail

populateMessage

void populateMessage(Exchange exchange,
                     long messageIndex)
                     throws Exception
Populates a message exchange when using the DataSet as a source of messages

Parameters:
exchange -
Throws:
Exception

getSize

long getSize()
Returns the size of the dataset


assertMessageExpected

void assertMessageExpected(DataSetEndpoint dataSetEndpoint,
                           Exchange expected,
                           Exchange actual,
                           long index)
                           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



Copyright © 2008 IONA Open Source Community. All Rights Reserved.