Module org.easymock

Class ExpectedInvocation

  • All Implemented Interfaces:
    Serializable

    public final class ExpectedInvocation
    extends Object
    implements Serializable
    One expected invocation. It is composed of the method invoked and the matchers used to expect the arguments.
    Author:
    OFFIS, Tammo Freese
    See Also:
    Serialized Form
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • matches

        public boolean matches​(Invocation actual)
        Tells if the actual invocation matches this expected invocation. It needs to be on the same mock, method and have the same arguments.
        Parameters:
        actual - the actual invocation to match with the expected one
        Returns:
        the invocation to compare
      • getMethod

        public Method getMethod()