|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.powermock.api.support.membermodification.strategy.impl.MethodReplaceStrategyImpl
public class MethodReplaceStrategyImpl
| Constructor Summary | |
|---|---|
MethodReplaceStrategyImpl(java.lang.reflect.Method method)
|
|
| Method Summary | |
|---|---|
void |
with(java.lang.reflect.InvocationHandler invocationHandler)
Replaces the method invocation with an invocation handler |
void |
with(java.lang.reflect.Method method)
Replaces the method invocation with this method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodReplaceStrategyImpl(java.lang.reflect.Method method)
| Method Detail |
|---|
public void with(java.lang.reflect.Method method)
MethodReplaceStrategyNote that both methods needs to be static.
with in interface MethodReplaceStrategymethod - The method call will be replaced by this method instead. Needs
to be static.public void with(java.lang.reflect.InvocationHandler invocationHandler)
MethodReplaceStrategy
with in interface MethodReplaceStrategyinvocationHandler - The invocation handler to replace the method call with.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||