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>, WithAnyArguments<T>, WithExpectedArguments<T>, WithExpectedParameterTypes<T>, WithOrWithoutExpectedArguments<T>, WithoutExpectedArguments<T>

public class DefaultConstructorExpectationSetup<T>
extends java.lang.Object
implements ConstructorExpectationSetup<T>


Constructor Summary
DefaultConstructorExpectationSetup(java.lang.Class<T> mockType)
           
 
Method Summary
 org.mockito.stubbing.OngoingStubbing<T> withAnyArguments()
           
 org.mockito.stubbing.OngoingStubbing<T> withArguments(java.lang.Object firstArgument, java.lang.Object... additionalArguments)
           
 org.mockito.stubbing.OngoingStubbing<T> withNoArguments()
           
 WithExpectedArguments<T> withParameterTypes(java.lang.Class<?> parameterType, java.lang.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(java.lang.Class<T> mockType)
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

withAnyArguments

public org.mockito.stubbing.OngoingStubbing<T> withAnyArguments()
                                                         throws java.lang.Exception
Specified by:
withAnyArguments in interface WithAnyArguments<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

withParameterTypes

public WithExpectedArguments<T> withParameterTypes(java.lang.Class<?> parameterType,
                                                   java.lang.Class<?>... additionalParameterTypes)
Specified by:
withParameterTypes in interface WithExpectedParameterTypes<T>


Copyright © 2007-2013. All Rights Reserved.