public class MainMockTransformer extends Object implements MockTransformer
Constructor and Description |
---|
MainMockTransformer() |
MainMockTransformer(TransformStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
void |
modifyMethod(javassist.CtMethod method) |
javassist.CtClass |
transform(javassist.CtClass clazz)
Transforms the
Class with name
fullyQualifiedName . |
public MainMockTransformer()
public MainMockTransformer(TransformStrategy strategy)
public javassist.CtClass transform(javassist.CtClass clazz) throws Exception
MockTransformer
Class
with name
fullyQualifiedName
.transform
in interface MockTransformer
CtClass
representation of the mocked class.Exception
public void modifyMethod(javassist.CtMethod method) throws javassist.NotFoundException, javassist.CannotCompileException
javassist.NotFoundException
javassist.CannotCompileException
Copyright © 2007–2014. All rights reserved.