Module org.easymock

Class Invocation

  • All Implemented Interfaces:
    Serializable

    public final class Invocation
    extends Object
    implements Serializable
    Represents a method invocation on a mock object. It's used for record one or for actual calls.
    Author:
    OFFIS, Tammo Freese
    See Also:
    Serialized Form
    • Method Detail

      • getMock

        public Object getMock()
        Returns the mock object on which the invocation was performed.
        Returns:
        the mock object on which the invocation was performed.
      • getMethod

        public Method getMethod()
        Returns the method invoked on the mock object.
        Returns:
        the method invoked on the mock object.
      • getArguments

        public Object[] getArguments()
        Returns the arguments passed to the method invocation.
        Returns:
        the arguments passed to the method invocation.
      • hashCode

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

        public String getMockAndMethodName()
      • validateCaptures

        public void validateCaptures()
      • clearCaptures

        public void clearCaptures()