Interface Stub

    • Method Detail

      • invoke

        java.lang.Object invoke​(Invocation invocation)
                         throws java.lang.Throwable
        Processes the invocation.
        Parameters:
        invocation - The invocation to stub.
        Returns:
        The result of the invocation, if not throwing an exception. Must return null if the invocation is of a invokedMethod with a void return type.
        Throws:
        java.lang.Throwable - An exception to be thrown to the caller, if not returning a value. A checked exception thrown from this invokedMethod must be in the throws list of the invoked method.