Package org.powermock.core.transformers
Interface MockTransformerChainFactory
-
- All Known Implementing Classes:
JavassistMockTransformerChainFactory
public interface MockTransformerChainFactory
An implementation of interface should create aMockTransformerChain
with full set of required transformers to enable all mocking features.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MockTransformerChain
createDefaultChain()
Create anMockTransformerChain
with using default strategyTransformStrategy.CLASSLOADER
MockTransformerChain
createDefaultChain(java.util.List<MockTransformer> extraMockTransformers)
Create anMockTransformerChain
with using default strategyTransformStrategy.CLASSLOADER
and with the givenextraMockTransformers
MockTransformerChain
createDefaultChain(TransformStrategy transformStrategy)
Create anMockTransformerChain
with using the giventransformStrategy
MockTransformerChain
createTestClassChain(MockTransformer testClassTransformer)
Create anMockTransformerChain
with using the giventestClassTransformer
as transformer for test class.
-
-
-
Method Detail
-
createDefaultChain
MockTransformerChain createDefaultChain()
Create anMockTransformerChain
with using default strategyTransformStrategy.CLASSLOADER
- Returns:
- an instance of MockTransformerChain
-
createDefaultChain
MockTransformerChain createDefaultChain(TransformStrategy transformStrategy)
Create anMockTransformerChain
with using the giventransformStrategy
- Returns:
- an instance of MockTransformerChain
-
createDefaultChain
MockTransformerChain createDefaultChain(java.util.List<MockTransformer> extraMockTransformers)
Create anMockTransformerChain
with using default strategyTransformStrategy.CLASSLOADER
and with the givenextraMockTransformers
- Returns:
- an instance of MockTransformerChain
-
createTestClassChain
MockTransformerChain createTestClassChain(MockTransformer testClassTransformer)
Create anMockTransformerChain
with using the giventestClassTransformer
as transformer for test class.- Returns:
- an instance of MockTransformerChain
-
-