Class NewInvocationControlImpl<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.easymock.IExpectationSetters<T> expectSubstitutionLogic​(java.lang.Object... arguments)
      Expect a call to the new instance substitution logic.
      java.lang.Object invoke​(java.lang.Class<?> type, java.lang.Object[] args, java.lang.Class<?>[] sig)
      Invoke the invocation control
      java.lang.Object replay​(java.lang.Object... mocks)
      Replay the given objects or classes.
      java.lang.Object reset​(java.lang.Object... mocks)
      Reset the given objects or classes.
      java.lang.Object verify​(java.lang.Object... mocks)
      Verify the given objects or classes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • subsitutionType

        private final java.lang.Class<T> subsitutionType
      • hasReplayed

        private boolean hasReplayed
      • hasVerified

        private boolean hasVerified
    • Constructor Detail

      • NewInvocationControlImpl

        public NewInvocationControlImpl​(InvocationSubstitute<T> substitute,
                                        java.lang.Class<T> type)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Class<?> type,
                                       java.lang.Object[] args,
                                       java.lang.Class<?>[] sig)
                                throws java.lang.Exception
        Description copied from interface: NewInvocationControl
        Invoke the invocation control
        Specified by:
        invoke in interface NewInvocationControl<T>
        Throws:
        java.lang.Exception
      • expectSubstitutionLogic

        public org.easymock.IExpectationSetters<T> expectSubstitutionLogic​(java.lang.Object... arguments)
                                                                    throws java.lang.Exception
        Description copied from interface: NewInvocationControl
        Expect a call to the new instance substitution logic.
        Specified by:
        expectSubstitutionLogic in interface NewInvocationControl<T>
        Throws:
        java.lang.Exception
      • replay

        public java.lang.Object replay​(java.lang.Object... mocks)
        Replay the given objects or classes. May throw exception if replay is not needed or not supported.
        Specified by:
        replay in interface DefaultBehavior
        Returns:
        the result of the replay (may be null).
      • verify

        public java.lang.Object verify​(java.lang.Object... mocks)
        Verify the given objects or classes. May throw exception if verify is not needed or not supported.
        Specified by:
        verify in interface DefaultBehavior
        Returns:
        the result of the verification (may be null).
      • reset

        public java.lang.Object reset​(java.lang.Object... mocks)
        Reset the given objects or classes. May throw exception if reset is not needed or not supported.
        Specified by:
        reset in interface DefaultBehavior
        Returns:
        the result of the replay (may be null).