Interface FlowExpectation

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void allSatisfied​(java.util.List<Capture<?>> captures)
      Have all expectations been satisfied
      <T> void expectation​(T expectation)
      Set an 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.
      <T> void expectation​(T expectation, ExpectationComparator<?,​?> expectationComparator)
      Set an expectation with a specific comparator to measure the expecation.
      <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.
      <T> void ignore​(T expectation)
      ignore an expectation
      <T> void ignore​(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