org.powermock.api.mockito.internal.expectation
Class DefaultConstructorExpectationSetup<T>

java.lang.Object
  extended by 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>


Constructor Summary
DefaultConstructorExpectationSetup(Class<T> mockType)
           
 
Method Summary
 void setParameterTypes(Class<?>[] parameterTypes)
           
 org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments)
           
 org.mockito.stubbing.OngoingStubbing<T> withNoArguments()
           
 WithExpectedArguments<T> withParameterTypes(Class<?> parameterType, Class<?>... additionalParameterTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConstructorExpectationSetup

public DefaultConstructorExpectationSetup(Class<T> mockType)
Method Detail

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.