Interface FlowExpectation
-
- All Known Implementing Classes:
AbstractListExpectation,OrderedExpectation,UnorderedExpectation
public interface FlowExpectationPublic API for setting operations on the FlowExpectation implemenation class.- Author:
- Ikasan Development Team
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallSatisfied(java.util.List<Capture<?>> captures)Have all expectations been satisfied<T> voidexpectation(T expectation)Set an expectation.<T> voidexpectation(T expectation, java.lang.String description)Set an expectation and provide a description for this expecation test which can help identify this expectation at runtime.<T> voidexpectation(T expectation, ExpectationComparator<?,?> expectationComparator)Set an expectation with a specific comparator to measure the expecation.<T> voidexpectation(T expectation, ExpectationComparator<?,?> expectationComparator, java.lang.String description)Set an expectation with a specific comparator to measure the expecation and a description of the expectation test which can help identify this expectation at runtime.<T> voidignore(T expectation)ignore an expectation<T> voidignore(T expectation, java.lang.String description)ignore an expectation and provide a description which can help identify this expectation at runtime.
-
-
-
Method Detail
-
expectation
<T> void expectation(T expectation, ExpectationComparator<?,?> expectationComparator)Set an expectation with a specific comparator to measure the expecation.- Type Parameters:
T-- Parameters:
expectation-expectationComparator-
-
expectation
<T> void expectation(T expectation, ExpectationComparator<?,?> expectationComparator, java.lang.String description)Set an expectation with a specific comparator to measure the expecation and a description of the expectation test which can help identify this expectation at runtime.- Type Parameters:
T-- Parameters:
expectation-expectationComparator-description-
-
expectation
<T> void expectation(T expectation)
Set an expectation.- Type Parameters:
T-- Parameters:
expectation-
-
expectation
<T> void expectation(T expectation, java.lang.String description)Set an expectation and provide a description for this expecation test which can help identify this expectation at runtime.- Type Parameters:
T-- Parameters:
expectation-description-
-
ignore
<T> void ignore(T expectation)
ignore an expectation- Type Parameters:
T-- Parameters:
expectation-
-
ignore
<T> void ignore(T expectation, java.lang.String description)ignore an expectation and provide a description which can help identify this expectation at runtime.- Type Parameters:
T-- Parameters:
expectation-description-
-
allSatisfied
void allSatisfied(java.util.List<Capture<?>> captures)
Have all expectations been satisfied- Parameters:
captures- Ordered list of captured FlowElement invocations- Throws:
java.lang.AssertionError- if all expected invocations not satisfied
-
-