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

java.lang.Object
  extended by 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
ConstructorAwareExpectationSetup(Constructor<T> ctor)
           
 
Method Summary
 org.mockito.stubbing.OngoingStubbing<T> withArguments(Object firstArgument, Object... additionalArguments)
           
 org.mockito.stubbing.OngoingStubbing<T> withNoArguments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
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


Copyright © 2007-2011. All Rights Reserved.