Class DefaultMockTransformerChain
java.lang.Object
org.powermock.core.transformers.support.DefaultMockTransformerChain
- All Implemented Interfaces:
MockTransformerChain
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface org.powermock.core.transformers.MockTransformerChain
MockTransformerChain.FilterPredicate
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DefaultMockTransformerChain
(List<MockTransformer> transformers) -
Method Summary
Modifier and TypeMethodDescriptionfilter
(MockTransformerChain.FilterPredicate predicate) Filter and return collection ofMockTransformer
which fit thepredicate
.toString()
<T> ClassWrapper
<T> transform
(ClassWrapper<T> clazz) Go thought all transformers in chain and instrument theclazz
.
-
Field Details
-
transformers
-
-
Constructor Details
-
DefaultMockTransformerChain
-
-
Method Details
-
transform
Description copied from interface:MockTransformerChain
Go thought all transformers in chain and instrument theclazz
.- Specified by:
transform
in interfaceMockTransformerChain
- Parameters:
clazz
- The class to be instrument to enabled class mocking.- Returns:
- A
ClassWrapper
representation of the instrumented class. - Throws:
Exception
-
filter
Description copied from interface:MockTransformerChain
Filter and return collection ofMockTransformer
which fit thepredicate
.- Specified by:
filter
in interfaceMockTransformerChain
- Parameters:
predicate
- to test MockTransformer- Returns:
- collection of
MockTransformer
which fit theMockTransformerChain.FilterPredicate
-
toString
-
newBuilder
-