Interface Expectation

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasExpectations()
      Return true if any expectations have been set on this object.
      void setExpectNothing()
      Tell the object to expect nothing to happen to it, perhaps because the test is exercising the handling of an error.
      void setFailOnVerify()
      If an incorrect actual value is set, defer reporting this as a failure until verify() is called on this object.
    • Method Detail

      • hasExpectations

        boolean hasExpectations()
        Return true if any expectations have been set on this object.
      • setExpectNothing

        void setExpectNothing()
        Tell the object to expect nothing to happen to it, perhaps because the test is exercising the handling of an error. The Expectation will fail if any actual values are set. Note that this is not the same as not setting any expectations, in which case verify() will do nothing.
      • setFailOnVerify

        void setFailOnVerify()
        If an incorrect actual value is set, defer reporting this as a failure until verify() is called on this object.