Class 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
    • 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:
        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