Class 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
    • 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:
        allSatisfied in interface FlowExpectation
        Specified by:
        allSatisfied in class AbstractListExpectation
        Parameters:
        captures - Ordered list of captured FlowElement invocations
        Throws:
        java.lang.AssertionError - if all expected invocations not satisfied