Class MethodReplaceStrategyImpl
java.lang.Object
org.powermock.api.support.membermodification.strategy.impl.MethodReplaceStrategyImpl
- All Implemented Interfaces:
MethodReplaceStrategy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
with
(InvocationHandler invocationHandler) Replaces the method invocation with an invocation handlervoid
Replaces the method invocation with this method.
-
Field Details
-
method
-
-
Constructor Details
-
MethodReplaceStrategyImpl
-
-
Method Details
-
with
Description copied from interface:MethodReplaceStrategy
Replaces the method invocation with this method.Note that both methods needs to be static.
- Specified by:
with
in interfaceMethodReplaceStrategy
- Parameters:
method
- The method call will be replaced by this method instead. Needs to be static.
-
with
Description copied from interface:MethodReplaceStrategy
Replaces the method invocation with an invocation handler- Specified by:
with
in interfaceMethodReplaceStrategy
- Parameters:
invocationHandler
- The invocation handler to replace the method call with.
-