Class ExpectedInvocation

java.lang.Object
org.easymock.internal.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.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • createMissingMatchers

      private List<IArgumentMatcher> createMissingMatchers(Invocation invocation, List<IArgumentMatcher> matchers)
    • 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.
      Parameters:
      actual - the actual invocation to match with the expected one
      Returns:
      the invocation to compare
    • matches

      private boolean matches(Object[] arguments)
    • toString

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

      public Method getMethod()