Class InvocationMocker

    • Constructor Detail

      • InvocationMocker

        public InvocationMocker()
    • Method Detail

      • invoke

        public java.lang.Object invoke​(Invocation invocation)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface Invokable
        Throws:
        java.lang.Throwable
      • verify

        public void verify()
        Description copied from interface: Verifiable
        Throw an AssertionFailedException if any expectations have not been met. Implementations of this method must be idempotent: jMock can call this method more than once when verifying expectations at the end of a test.
        Specified by:
        verify in interface Verifiable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • describeTo

        public java.lang.StringBuffer describeTo​(java.lang.StringBuffer buffer)
        Description copied from interface: SelfDescribing
        Appends the description of this object to the buffer.
        Specified by:
        describeTo in interface SelfDescribing
        Parameters:
        buffer - The buffer that the description is appended to.
        Returns:
        The buffer passed to the invokedMethod.