Class OrderedExpectation
- java.lang.Object
-
- org.ikasan.testharness.flow.expectation.service.AbstractListExpectation
-
- org.ikasan.testharness.flow.expectation.service.OrderedExpectation
-
- All Implemented Interfaces:
FlowExpectation
public class OrderedExpectation extends AbstractListExpectation
Implementation of a FlowExpectation based on applying the expectations in a strict given order.- Author:
- Ikasan Development Team
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ikasan.testharness.flow.expectation.service.AbstractListExpectation
AbstractListExpectation.DefaultExpectation<T>
-
-
Field Summary
-
Fields inherited from class org.ikasan.testharness.flow.expectation.service.AbstractListExpectation
comparatorService, expectations
-
-
Constructor Summary
Constructors Constructor Description OrderedExpectation()ConstructorOrderedExpectation(ComparatorService comparatorService)Contructor allowing an alternate comparator service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallSatisfied(java.util.List<Capture<?>> captures)Have all expectations been satisfied-
Methods inherited from class org.ikasan.testharness.flow.expectation.service.AbstractListExpectation
addExpectation, expectation, expectation, expectation, expectation, formatList, getDefaultComparatorService, getExpectationDifference, ignore, ignore
-
-
-
-
Constructor Detail
-
OrderedExpectation
public OrderedExpectation()
Constructor
-
OrderedExpectation
public OrderedExpectation(ComparatorService comparatorService)
Contructor allowing an alternate comparator service.- Parameters:
comparatorService-
-
-
Method Detail
-
allSatisfied
public void allSatisfied(java.util.List<Capture<?>> captures)
Have all expectations been satisfied- Specified by:
allSatisfiedin interfaceFlowExpectation- Specified by:
allSatisfiedin classAbstractListExpectation- Parameters:
captures- Ordered list of captured FlowElement invocations- Throws:
java.lang.AssertionError- if all expected invocations not satisfied
-
-