org.powermock.api.mockito.internal.verification
Class DefaultPrivateMethodVerification

java.lang.Object
  extended by org.powermock.api.mockito.internal.verification.DefaultPrivateMethodVerification
All Implemented Interfaces:
PrivateMethodVerification

public class DefaultPrivateMethodVerification
extends Object
implements PrivateMethodVerification


Constructor Summary
DefaultPrivateMethodVerification(Object objectToVerify)
           
 
Method Summary
 WithOrWithoutVerifiedArguments invoke(Method method)
          Verify calls to the specific method.
 void invoke(Object... arguments)
          Verify calls to private methods without having to specify the method name.
 void invoke(String methodToExecute, Object... arguments)
          Verify a private method call by specifying the method name of the method to verify.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPrivateMethodVerification

public DefaultPrivateMethodVerification(Object objectToVerify)
Method Detail

invoke

public void invoke(Object... arguments)
            throws Exception
Description copied from interface: PrivateMethodVerification
Verify calls to private methods without having to specify the method name. The method will be looked up using the parameter types (if possible).

Specified by:
invoke in interface PrivateMethodVerification
Throws:
Exception - If something unexpected goes wrong.

invoke

public void invoke(String methodToExecute,
                   Object... arguments)
            throws Exception
Description copied from interface: PrivateMethodVerification
Verify a private method call by specifying the method name of the method to verify.

Specified by:
invoke in interface PrivateMethodVerification
Throws:
Exception - If something unexpected goes wrong.
See Also:
Mockito#invoke(Object)}

invoke

public WithOrWithoutVerifiedArguments invoke(Method method)
                                      throws Exception
Description copied from interface: PrivateMethodVerification
Verify calls to the specific method.

Specified by:
invoke in interface PrivateMethodVerification
Throws:
Exception - If something unexpected goes wrong.


Copyright © 2007-2011. All Rights Reserved.