Package org.powermock.core.transformers
Interface MockTransformerChain
- All Known Implementing Classes:
DefaultMockTransformerChain
public interface MockTransformerChain
Interface represent chain of
MockTransformer
.
Each transformer in chain instruments a class to enable one of mocking feature.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfilter
(MockTransformerChain.FilterPredicate predicate) Filter and return collection ofMockTransformer
which fit thepredicate
.<T> ClassWrapper
<T> transform
(ClassWrapper<T> clazz) Go thought all transformers in chain and instrument theclazz
.
-
Method Details
-
transform
Go thought all transformers in chain and instrument theclazz
.- Parameters:
clazz
- The class to be instrument to enabled class mocking.- Returns:
- A
ClassWrapper
representation of the instrumented class. - Throws:
Exception
-
filter
Filter and return collection ofMockTransformer
which fit thepredicate
.- Parameters:
predicate
- to test MockTransformer- Returns:
- collection of
MockTransformer
which fit theMockTransformerChain.FilterPredicate
-