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>
-
-
Constructor Summary
Constructors Constructor Description DefaultConstructorExpectationSetup(Class<T> mockType)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
withArguments
public org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments) throws Exception
- Specified by:
withArguments
in interfaceWithExpectedArguments<T>
- Throws:
Exception
-
withAnyArguments
public org.mockito.stubbing.OngoingStubbing<T> withAnyArguments() throws Exception
- Specified by:
withAnyArguments
in interfaceWithAnyArguments<T>
- Throws:
Exception
-
withNoArguments
public org.mockito.stubbing.OngoingStubbing<T> withNoArguments() throws Exception
- Specified by:
withNoArguments
in interfaceWithoutExpectedArguments<T>
- Throws:
Exception
-
withParameterTypes
public WithExpectedArguments<T> withParameterTypes(Class<?> parameterType, Class<?>... additionalParameterTypes)
- Specified by:
withParameterTypes
in interfaceWithExpectedParameterTypes<T>
-
-