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