Module org.easymock

Class ExpectedInvocation

java.lang.Object
org.easymock.internal.ExpectedInvocation
All Implemented Interfaces:
Serializable

public 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:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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.
      Returns:
      the invocation to compare
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMethod

      public Method getMethod()