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