org.powermock.api.mockito.internal.expectation
Class DefaultConstructorExpectationSetup<T>
java.lang.Object
org.powermock.api.mockito.internal.expectation.DefaultConstructorExpectationSetup<T>
- All Implemented Interfaces:
- ConstructorExpectationSetup<T>, WithExpectedArguments<T>, WithExpectedParameterTypes<T>, WithOrWithoutExpectedArguments<T>, WithoutExpectedArguments<T>
public class DefaultConstructorExpectationSetup<T>
- extends Object
- implements ConstructorExpectationSetup<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConstructorExpectationSetup
public DefaultConstructorExpectationSetup(Class<T> mockType)
setParameterTypes
public void setParameterTypes(Class<?>[] parameterTypes)
withArguments
public org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument,
Object... additionalArguments)
throws Exception
- Specified by:
withArguments
in interface WithExpectedArguments<T>
- Throws:
Exception
withNoArguments
public org.mockito.stubbing.OngoingStubbing<T> withNoArguments()
throws Exception
- Specified by:
withNoArguments
in interface WithoutExpectedArguments<T>
- Throws:
Exception
withParameterTypes
public WithExpectedArguments<T> withParameterTypes(Class<?> parameterType,
Class<?>... additionalParameterTypes)
- Specified by:
withParameterTypes
in interface WithExpectedParameterTypes<T>
Copyright © 2007-2010. All Rights Reserved.