public class DefaultConstructorExpectationSetup<T> extends Object implements ConstructorExpectationSetup<T>
Constructor and Description |
---|
DefaultConstructorExpectationSetup(Class<T> mockType) |
Modifier and Type | Method and 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 © 2019. All rights reserved.