public interface ErrorReport
StreamMatcher
.Modifier and Type | Method and Description |
---|---|
void |
addFoundTuple(TupleMatcher m,
com.streambase.sb.Tuple a)
add a successfully matched tuple to the report.
|
void |
addMissingMatcher(TupleMatcher m)
add a matcher that failed to match anything to the report.
|
void |
addUnexpectedTuple(com.streambase.sb.Tuple a)
add a tuple that failed to match anything to the report.
|
java.lang.String |
getActualMessage()
inside Eclipse the JUnit view will present a graphical diff of
getExpectedMessage() and getActualMessage() . |
java.lang.String |
getExpectedMessage()
inside Eclipse the JUnit view will present a graphical diff of
getExpectedMessage() and getActualMessage() . |
java.util.List<TupleMatcher> |
getFoundMatchers()
get the tuple matchers that matched successfully
|
java.util.List<com.streambase.sb.Tuple> |
getFoundTuples()
get the tuples that matched successfully
|
java.lang.String |
getMessage()
get the message shown in the stack trace, when reporting a failure.
|
java.util.List<TupleMatcher> |
getMissingMatchers()
get the tuple matchers that failed to match.
|
java.util.List<com.streambase.sb.Tuple> |
getUnexpectedTuples()
get the tuples that arrived unexpectedly
|
void |
throwIfError(StreamMatcher.ExtraTuples extra)
throw an error that summarizes the report, if it contains errors.
|
void addFoundTuple(TupleMatcher m, com.streambase.sb.Tuple a)
m
- The matcher that succeededa
- The tuple that it succeeded againstvoid addUnexpectedTuple(com.streambase.sb.Tuple a)
void addMissingMatcher(TupleMatcher m)
java.util.List<TupleMatcher> getFoundMatchers()
java.util.List<com.streambase.sb.Tuple> getFoundTuples()
java.util.List<TupleMatcher> getMissingMatchers()
java.util.List<com.streambase.sb.Tuple> getUnexpectedTuples()
void throwIfError(StreamMatcher.ExtraTuples extra) throws ExpectTuplesFailure
extra
- Should unexpected tuples be treated as errorsExpectTuplesFailure
java.lang.String getMessage()
java.lang.String getExpectedMessage()
getExpectedMessage()
and getActualMessage()
.java.lang.String getActualMessage()
getExpectedMessage()
and getActualMessage()
.