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 ofMockTransformerwhich 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
ClassWrapperrepresentation of the instrumented class. - Throws:
Exception
-
filter
Filter and return collection ofMockTransformerwhich fit thepredicate.- Parameters:
predicate- to test MockTransformer- Returns:
- collection of
MockTransformerwhich fit theMockTransformerChain.FilterPredicate
-