Class DefaultConstructorExpectationSetup<T>
java.lang.Object
org.powermock.api.mockito.expectation.DefaultConstructorExpectationSetup<T>
- All Implemented Interfaces:
ConstructorExpectationSetup<T>, WithAnyArguments<T>, WithExpectedArguments<T>, WithExpectedParameterTypes<T>, WithOrWithoutExpectedArguments<T>, WithoutExpectedArguments<T>
public class DefaultConstructorExpectationSetup<T>
extends Object
implements ConstructorExpectationSetup<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArrayMergerprivate final InvocationSubstituteprivate final DefaultMockCreatorprivate Class<?>[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>> createNewInvocationControl(Class<T> type, Class<T> unmockedType) private NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>> private org.mockito.stubbing.OngoingStubbing<T> createNewSubstituteMock(Class<T> type, Class<?>[] parameterTypes, Object... arguments) private ObjectcreateParamArgMatcher(Class<?> paramType) private DefaultMockCreator(package private) voidsetParameterTypes(Class<?>[] parameterTypes) org.mockito.stubbing.OngoingStubbing<T> org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments) org.mockito.stubbing.OngoingStubbing<T> withParameterTypes(Class<?> parameterType, Class<?>... additionalParameterTypes)
-
Field Details
-
mockType
-
arrayMerger
-
mockCreator
-
parameterTypes
-
mock
-
-
Constructor Details
-
DefaultConstructorExpectationSetup
-
-
Method Details
-
withArguments
public org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments) throws Exception - Specified by:
withArgumentsin interfaceWithExpectedArguments<T>- Throws:
Exception
-
createNewSubstituteMock
-
createNewInvocationControl
-
withAnyArguments
- Specified by:
withAnyArgumentsin interfaceWithAnyArguments<T>- Throws:
Exception
-
createParamArgMatcher
-
withNoArguments
- Specified by:
withNoArgumentsin interfaceWithoutExpectedArguments<T>- Throws:
Exception
-
withParameterTypes
public WithExpectedArguments<T> withParameterTypes(Class<?> parameterType, Class<?>... additionalParameterTypes) - Specified by:
withParameterTypesin interfaceWithExpectedParameterTypes<T>
-
getMockCreator
-
createNewInvocationControl
private NewInvocationControl<org.mockito.stubbing.OngoingStubbing<T>> createNewInvocationControl(InvocationSubstitute<T> mock) -
setParameterTypes
-