public class ConstructorAwareExpectationSetup<T> extends java.lang.Object implements WithOrWithoutExpectedArguments<T>
Constructor and Description |
---|
ConstructorAwareExpectationSetup(java.lang.reflect.Constructor<T> ctor) |
Modifier and Type | Method and Description |
---|---|
org.mockito.stubbing.OngoingStubbing<T> |
withArguments(java.lang.Object firstArgument,
java.lang.Object... additionalArguments) |
org.mockito.stubbing.OngoingStubbing<T> |
withNoArguments() |
public ConstructorAwareExpectationSetup(java.lang.reflect.Constructor<T> ctor)
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> withNoArguments() throws java.lang.Exception
withNoArguments
in interface WithoutExpectedArguments<T>
java.lang.Exception