Package com.streambase.sb.unittest
Class Expecter.AbstractPredicate
java.lang.Object
com.streambase.sb.unittest.Expecter.AbstractPredicate
- All Implemented Interfaces:
Expecter.Predicate
- Enclosing class:
- Expecter
public abstract static class Expecter.AbstractPredicate
extends Object
implements Expecter.Predicate
Subclass this and override isExpected(Tuple t) to simplify creating predicates.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
AbstractPredicate
public AbstractPredicate()
-
-
Method Details
-
isExpected
- Specified by:
isExpected
in interfaceExpecter.Predicate
- Parameters:
t
- theTuple
to introspect- Returns:
- true if t is expected. Otherwise, return false.
- Throws:
StreamBaseException
- Error detected
-