Class ConstructorAwareExpectationSetup<T>
- java.lang.Object
-
- org.powermock.api.mockito.internal.expectation.ConstructorAwareExpectationSetup<T>
-
- All Implemented Interfaces:
WithExpectedArguments<T>,WithOrWithoutExpectedArguments<T>,WithoutExpectedArguments<T>
public class ConstructorAwareExpectationSetup<T> extends Object implements WithOrWithoutExpectedArguments<T>
-
-
Constructor Summary
Constructors Constructor Description ConstructorAwareExpectationSetup(Constructor<T> ctor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.mockito.stubbing.OngoingStubbing<T>withArguments(Object firstArgument, Object... additionalArguments)org.mockito.stubbing.OngoingStubbing<T>withNoArguments()
-
-
-
Constructor Detail
-
ConstructorAwareExpectationSetup
public ConstructorAwareExpectationSetup(Constructor<T> ctor)
-
-
Method Detail
-
withArguments
public org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments) throws Exception
- Specified by:
withArgumentsin interfaceWithExpectedArguments<T>- Throws:
Exception
-
withNoArguments
public org.mockito.stubbing.OngoingStubbing<T> withNoArguments() throws Exception
- Specified by:
withNoArgumentsin interfaceWithoutExpectedArguments<T>- Throws:
Exception
-
-