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

java.lang.Object
  extended by 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
DefaultMethodExpectationSetup(java.lang.Object object, java.lang.reflect.Method method)
           
 
Method Summary
 org.mockito.stubbing.OngoingStubbing<T> withArguments(java.lang.Object firstArgument, java.lang.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

DefaultMethodExpectationSetup

public DefaultMethodExpectationSetup(java.lang.Object object,
                                     java.lang.reflect.Method method)
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 interface WithExpectedArguments<T>
Throws:
java.lang.Exception

withNoArguments

public org.mockito.stubbing.OngoingStubbing<T> withNoArguments()
                                                        throws java.lang.Exception
Specified by:
withNoArguments in interface WithoutExpectedArguments<T>
Throws:
java.lang.Exception


Copyright © 2007-2013. All Rights Reserved.