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 |
---|---|
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 Exception
clazz
.clazz
- The class to be instrument to enabled class mocking.ClassWrapper
representation of the instrumented class.Exception
Collection<MockTransformer> filter(MockTransformerChain.FilterPredicate predicate)
MockTransformer
which fit the predicate
.predicate
- to test MockTransformerMockTransformer
which fit the MockTransformerChain.FilterPredicate
Copyright © 2019. All rights reserved.