org.powermock.api.support.membermodification.strategy
Interface ClassReplaceStrategy


public interface ClassReplaceStrategy

Specifies the replace strategy for a class.


Method Summary
 void with(Class<?> cls)
          Replaces all method invocations on class specified class with method invocation to cls.
 

Method Detail

with

void with(Class<?> cls)
Replaces all method invocations on class specified class with method invocation to cls. Also replaces all constructor invocations. You can see this as duck typing.

Parameters:
cls - The class that will replace the other class.


Copyright © 2007-2012. All Rights Reserved.