Class DefaultConstructorExpectationSetup<T>

    • Field Detail

      • parameterTypes

        private java.lang.Class<?>[] parameterTypes
      • mockType

        private final java.lang.Class<T> mockType
    • Constructor Detail

      • DefaultConstructorExpectationSetup

        public DefaultConstructorExpectationSetup​(java.lang.Class<T> mockType)
    • Method Detail

      • setParameterTypes

        void setParameterTypes​(java.lang.Class<?>[] parameterTypes)
      • withArguments

        org.mockito.stubbing.OngoingStubbing<T> withArguments​(java.lang.Object[] additionalArguments)
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • withArguments

        public org.mockito.stubbing.OngoingStubbing<T> withArguments​(java.lang.Object firstArgument,
                                                                     java.lang.Object... additionalArguments)
                                                              throws java.lang.Exception
        Specified by:
        withArguments in interface WithExpectedArguments<T>
        Throws:
        java.lang.Exception
      • withAnyArguments

        public org.mockito.stubbing.OngoingStubbing<T> withAnyArguments()
                                                                 throws java.lang.Exception
        Specified by:
        withAnyArguments in interface WithAnyArguments<T>
        Throws:
        java.lang.Exception
      • withNoArguments

        public org.mockito.stubbing.OngoingStubbing<T> withNoArguments()
                                                                throws java.lang.Exception
        Specified by:
        withNoArguments in interface WithoutExpectedArguments<T>
        Throws:
        java.lang.Exception
      • createNewSubstituteMock

        private static <T> org.mockito.stubbing.OngoingStubbing<T> createNewSubstituteMock​(java.lang.Class<T> type,
                                                                                           java.lang.Class<?>[] parameterTypes,
                                                                                           java.lang.Object... arguments)
                                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception