Package com.streambase.sb.unittest
Interface TupleComparator
-
- All Known Implementing Classes:
FieldBasedTupleComparator
public interface TupleComparatorATupleComparatorabstracts comparison of tuples.- Since:
- 6.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancompare(Tuple expected, Tuple actual)Compare two tuples.booleancompareValues(CompleteDataType cdt, Object expected, Object actual)Compare two values withCompleteDataTypecdt.StringformatForErrorMessage(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 withCompleteDataTypecdt.- Parameters:
cdt- TheCompleteDataTypefor the objects being comparedexpected- The expected valueactual- The actual value- Returns:
- true if the values are equal
- Throws:
StreamBaseException
-
-