Class DefaultMethodExpectationSetup<T>
- java.lang.Object
-
- org.powermock.api.mockito.internal.expectation.DefaultMethodExpectationSetup<T>
-
- All Implemented Interfaces:
WithExpectedArguments<T>
,WithOrWithoutExpectedArguments<T>
,WithoutExpectedArguments<T>
public class DefaultMethodExpectationSetup<T> extends java.lang.Object implements WithOrWithoutExpectedArguments<T>
-
-
Constructor Summary
Constructors Constructor Description DefaultMethodExpectationSetup(java.lang.Object object, java.lang.reflect.Method method)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.Object[]
join(java.lang.Object o, java.lang.Object[] array)
org.mockito.stubbing.OngoingStubbing<T>
withArguments(java.lang.Object firstArgument, java.lang.Object... additionalArguments)
org.mockito.stubbing.OngoingStubbing<T>
withNoArguments()
-
-
-
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
-
join
private static java.lang.Object[] join(java.lang.Object o, java.lang.Object[] array)
-
-