Package org.powermock.core.transformers
package org.powermock.core.transformers
-
ClassDescriptionClassWrapper<T>An interface represents an abstraction of the class to be able to pass class to different byte-code instrumentation frameworks.An implementation should wrap original instance.Interface that all mock transformers must implement.Interface represent chain of
MockTransformer.An implementation of interface should create aMockTransformerChainwith full set of required transformers to enable all mocking features.If a transformer implements this interface thenMockClassLoaderBuildersets current test class during building a instance ofMockClassLoader.TestClassTransformer<T,M> MockTransformer implementation that will make PowerMock test-class enhancements for four purposes... 1) Make test-class static initializer and constructor send crucial details (for PowerMockTestListener events) to GlobalNotificationBuildSupport so that this information can be forwarded to whichever facility is used for composing the PowerMockTestListener events. 2) Removal of test-method annotations as a mean to achieve test-suite chunking!The enum provide information forMockTransformerhave PowerMock is started via Runner(FactoryObject), Rule or JavaAgent