Class DefaultConstructorExpectationSetup<T>

    • Field Detail

      • mockType

        private final java.lang.Class<T> mockType
      • parameterTypes

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

      • DefaultConstructorExpectationSetup

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

      • 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
      • createNewSubstituteMock

        private 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
      • createNewInvocationControl

        private NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>> createNewInvocationControl​(java.lang.Class<T> type,
                                                                                                         java.lang.Class<T> unmockedType)
      • withAnyArguments

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

        private java.lang.Object createParamArgMatcher​(java.lang.Class<?> paramType)
      • withNoArguments

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

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