public class DefaultConstructorExpectationSetup<T> extends java.lang.Object implements ConstructorExpectationSetup<T>
Modifier and Type | Field and Description |
---|---|
private ArrayMerger |
arrayMerger |
private java.lang.Class<T> |
mockType |
private java.lang.Class<?>[] |
parameterTypes |
Constructor and Description |
---|
DefaultConstructorExpectationSetup(java.lang.Class<T> mockType) |
Modifier and Type | Method and Description |
---|---|
private static <T> org.mockito.stubbing.OngoingStubbing<T> |
createNewSubstituteMock(java.lang.Class<T> type,
java.lang.Class<?>[] parameterTypes,
java.lang.Object... arguments) |
(package private) void |
setParameterTypes(java.lang.Class<?>[] parameterTypes) |
org.mockito.stubbing.OngoingStubbing<T> |
withAnyArguments() |
(package private) org.mockito.stubbing.OngoingStubbing<T> |
withArguments(java.lang.Object[] additionalArguments) |
org.mockito.stubbing.OngoingStubbing<T> |
withArguments(java.lang.Object firstArgument,
java.lang.Object... additionalArguments) |
org.mockito.stubbing.OngoingStubbing<T> |
withNoArguments() |
WithExpectedArguments<T> |
withParameterTypes(java.lang.Class<?> parameterType,
java.lang.Class<?>... additionalParameterTypes) |
private java.lang.Class<?>[] parameterTypes
private final java.lang.Class<T> mockType
private final ArrayMerger arrayMerger
public DefaultConstructorExpectationSetup(java.lang.Class<T> mockType)
void setParameterTypes(java.lang.Class<?>[] parameterTypes)
org.mockito.stubbing.OngoingStubbing<T> withArguments(java.lang.Object[] additionalArguments) throws java.lang.Exception
java.lang.Exception
public org.mockito.stubbing.OngoingStubbing<T> withArguments(java.lang.Object firstArgument, java.lang.Object... additionalArguments) throws java.lang.Exception
withArguments
in interface WithExpectedArguments<T>
java.lang.Exception
public org.mockito.stubbing.OngoingStubbing<T> withAnyArguments() throws java.lang.Exception
withAnyArguments
in interface WithAnyArguments<T>
java.lang.Exception
public org.mockito.stubbing.OngoingStubbing<T> withNoArguments() throws java.lang.Exception
withNoArguments
in interface WithoutExpectedArguments<T>
java.lang.Exception
public WithExpectedArguments<T> withParameterTypes(java.lang.Class<?> parameterType, java.lang.Class<?>... additionalParameterTypes)
withParameterTypes
in interface WithExpectedParameterTypes<T>
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
java.lang.Exception