public interface MockTransformerChain
MockTransformer.
Each transformer in chain instruments a class to enable one of mocking feature.| Modifier and Type | Interface and Description |
|---|---|
static interface |
MockTransformerChain.FilterPredicate |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<MockTransformer> |
filter(MockTransformerChain.FilterPredicate predicate)
Filter and return collection of
MockTransformer which fit the predicate. |
<T> ClassWrapper<T> |
transform(ClassWrapper<T> clazz)
Go thought all transformers in chain and instrument the
clazz. |
<T> ClassWrapper<T> transform(ClassWrapper<T> clazz) throws java.lang.Exception
clazz.clazz - The class to be instrument to enabled class mocking.ClassWrapper representation of the instrumented class.java.lang.Exceptionjava.util.Collection<MockTransformer> filter(MockTransformerChain.FilterPredicate predicate)
MockTransformer which fit the predicate.predicate - to test MockTransformerMockTransformer which fit the MockTransformerChain.FilterPredicate