Package org.jmock.api

Class Invocation

  • All Implemented Interfaces:
    org.hamcrest.SelfDescribing

    public class Invocation
    extends Object
    implements org.hamcrest.SelfDescribing
    The static details about a method and the run-time details of its invocation.
    Since:
    1.0
    • Field Detail

      • NO_PARAMETERS

        public static final Object[] NO_PARAMETERS
    • Constructor Detail

      • Invocation

        public Invocation​(Object invoked,
                          Method method,
                          Object... parameterValues)
    • Method Detail

      • equals

        public boolean equals​(Invocation other)
      • hashCode

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

        public void describeTo​(org.hamcrest.Description description)
        Specified by:
        describeTo in interface org.hamcrest.SelfDescribing
      • getInvokedObject

        public Object getInvokedObject()
      • getInvokedMethod

        public Method getInvokedMethod()
      • getParameterCount

        public int getParameterCount()
      • getParameter

        public Object getParameter​(int i)
      • getParametersAsArray

        public Object[] getParametersAsArray()
      • checkReturnTypeCompatibility

        public void checkReturnTypeCompatibility​(Object value)