Interface NewInvocationControl<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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 constructor invocation control
    • Method Detail

      • invoke

        java.lang.Object invoke​(java.lang.Class<?> type,
                                java.lang.Object[] args,
                                java.lang.Class<?>[] sig)
                         throws java.lang.Exception
        Invoke the constructor invocation control
        Parameters:
        type - invocation target type
        args - arguments of constructor invocation
        sig - parameters of a constructor
        Returns:
        result of invocation
        Throws:
        java.lang.Exception
      • expectSubstitutionLogic

        T expectSubstitutionLogic​(java.lang.Object... arguments)
                           throws java.lang.Exception
        Expect a call to the new instance substitution logic.
        Parameters:
        arguments - constructor arguments
        Returns:
        result of stubbing a constructor. Result depends on mocking framework.
        Throws:
        java.lang.Exception