Package com.streambase.sb.unittest
Interface TupleComparator
-
- All Known Implementing Classes:
FieldBasedTupleComparator
public interface TupleComparator
ATupleComparator
abstracts comparison of tuples.- Since:
- 6.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
compare(Tuple expected, Tuple actual)
Compare two tuples.boolean
compareValues(CompleteDataType cdt, Object expected, Object actual)
Compare two values withCompleteDataType
cdt.String
formatForErrorMessage(Tuple t)
Convert the provided Tuple into a string appropriate for error messages.
-
-
-
Method Detail
-
compare
boolean compare(Tuple expected, Tuple actual) throws StreamBaseException
Compare two tuples.- Parameters:
expected
- The expected valueactual
- The actual value- Returns:
- true if the tuples are equal
- Throws:
StreamBaseException
-
compareValues
boolean compareValues(CompleteDataType cdt, Object expected, Object actual) throws StreamBaseException
Compare two values withCompleteDataType
cdt.- Parameters:
cdt
- TheCompleteDataType
for the objects being comparedexpected
- The expected valueactual
- The actual value- Returns:
- true if the values are equal
- Throws:
StreamBaseException
-
-