Class DefaultConstructorExpectationSetup<T>
java.lang.Object
org.powermock.api.mockito.internal.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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> org.mockito.stubbing.OngoingStubbing<T>
createNewSubstituteMock
(Class<T> type, Class<?>[] parameterTypes, Object... arguments) (package private) void
setParameterTypes
(Class<?>[] parameterTypes) org.mockito.stubbing.OngoingStubbing<T>
(package private) org.mockito.stubbing.OngoingStubbing<T>
withArguments
(Object[] additionalArguments) org.mockito.stubbing.OngoingStubbing<T>
withArguments
(Object firstArgument, Object... additionalArguments) org.mockito.stubbing.OngoingStubbing<T>
withParameterTypes
(Class<?> parameterType, Class<?>... additionalParameterTypes)
-
Field Details
-
parameterTypes
-
mockType
-
arrayMerger
-
-
Constructor Details
-
DefaultConstructorExpectationSetup
-
-
Method Details
-
setParameterTypes
-
withArguments
org.mockito.stubbing.OngoingStubbing<T> withArguments(Object[] additionalArguments) throws Exception - Throws:
Exception
-
withArguments
public org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments) throws Exception - Specified by:
withArguments
in interfaceWithExpectedArguments<T>
- Throws:
Exception
-
withAnyArguments
- Specified by:
withAnyArguments
in interfaceWithAnyArguments<T>
- Throws:
Exception
-
withNoArguments
- Specified by:
withNoArguments
in interfaceWithoutExpectedArguments<T>
- Throws:
Exception
-
withParameterTypes
public WithExpectedArguments<T> withParameterTypes(Class<?> parameterType, Class<?>... additionalParameterTypes) - Specified by:
withParameterTypes
in interfaceWithExpectedParameterTypes<T>
-
createNewSubstituteMock
private static <T> org.mockito.stubbing.OngoingStubbing<T> createNewSubstituteMock(Class<T> type, Class<?>[] parameterTypes, Object... arguments) throws Exception - Throws:
Exception
-