org.powermock.core.transformers.impl
Class MainMockTransformer
java.lang.Object
org.powermock.core.transformers.impl.MainMockTransformer
- All Implemented Interfaces:
- MockTransformer
public class MainMockTransformer
- extends Object
- implements MockTransformer
Method Summary |
void |
modifyMethod(javassist.CtMethod method)
|
javassist.CtClass |
transform(javassist.CtClass clazz)
Transforms the Class with name
fullyQualifiedName . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MainMockTransformer
public MainMockTransformer()
MainMockTransformer
public MainMockTransformer(TransformStrategy strategy)
transform
public javassist.CtClass transform(javassist.CtClass clazz)
throws Exception
- Description copied from interface:
MockTransformer
- Transforms the
Class
with name
fullyQualifiedName
.
- Specified by:
transform
in interface MockTransformer
- Returns:
- A
CtClass
representation of the mocked class.
- Throws:
Exception
modifyMethod
public void modifyMethod(javassist.CtMethod method)
throws javassist.NotFoundException,
javassist.CannotCompileException
- Throws:
javassist.NotFoundException
javassist.CannotCompileException
Copyright © 2007-2012. All Rights Reserved.