ConstructorExpectationSetup<T>
, WithAnyArguments<T>
, WithExpectedArguments<T>
, WithExpectedParameterTypes<T>
, WithOrWithoutExpectedArguments<T>
, WithoutExpectedArguments<T>
public class DefaultConstructorExpectationSetup<T> extends Object implements ConstructorExpectationSetup<T>
Constructor | Description |
---|---|
DefaultConstructorExpectationSetup(Class<T> mockType) |
Modifier and Type | Method | Description |
---|---|---|
org.mockito.stubbing.OngoingStubbing<T> |
withAnyArguments() |
|
org.mockito.stubbing.OngoingStubbing<T> |
withArguments(Object firstArgument,
Object... additionalArguments) |
|
org.mockito.stubbing.OngoingStubbing<T> |
withNoArguments() |
|
WithExpectedArguments<T> |
withParameterTypes(Class<?> parameterType,
Class<?>... additionalParameterTypes) |
public org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments) throws Exception
withArguments
in interface WithExpectedArguments<T>
Exception
public org.mockito.stubbing.OngoingStubbing<T> withAnyArguments() throws Exception
withAnyArguments
in interface WithAnyArguments<T>
Exception
public org.mockito.stubbing.OngoingStubbing<T> withNoArguments() throws Exception
withNoArguments
in interface WithoutExpectedArguments<T>
Exception
public WithExpectedArguments<T> withParameterTypes(Class<?> parameterType, Class<?>... additionalParameterTypes)
withParameterTypes
in interface WithExpectedParameterTypes<T>
Copyright © 2007–2019. All rights reserved.