Class DefaultMockTransformerChain
java.lang.Object
org.powermock.core.transformers.support.DefaultMockTransformerChain
- All Implemented Interfaces:
MockTransformerChain
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface MockTransformerChain
MockTransformerChain.FilterPredicate -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDefaultMockTransformerChain(List<MockTransformer> transformers) -
Method Summary
Modifier and TypeMethodDescriptionfilter(MockTransformerChain.FilterPredicate predicate) Filter and return collection ofMockTransformerwhich 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:MockTransformerChainGo thought all transformers in chain and instrument theclazz.- Specified by:
transformin interfaceMockTransformerChain- Parameters:
clazz- The class to be instrument to enabled class mocking.- Returns:
- A
ClassWrapperrepresentation of the instrumented class. - Throws:
Exception
-
filter
Description copied from interface:MockTransformerChainFilter and return collection ofMockTransformerwhich fit thepredicate.- Specified by:
filterin interfaceMockTransformerChain- Parameters:
predicate- to test MockTransformer- Returns:
- collection of
MockTransformerwhich fit theMockTransformerChain.FilterPredicate
-
toString
-
newBuilder
-