Class UnorderedExpectation
- java.lang.Object
-
- org.ikasan.testharness.flow.expectation.service.AbstractListExpectation
-
- org.ikasan.testharness.flow.expectation.service.UnorderedExpectation
-
- All Implemented Interfaces:
FlowExpectation
public class UnorderedExpectation extends AbstractListExpectation
Implementation of the AbstractListExpectation based on applying the expectations in any 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 UnorderedExpectation()Default constructor that will initialise a default comparatorUnorderedExpectation(ComparatorService comparatorService)Constructor 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
-
UnorderedExpectation
public UnorderedExpectation()
Default constructor that will initialise a default comparator
-
UnorderedExpectation
public UnorderedExpectation(ComparatorService comparatorService)
Constructor 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
-
-