public class MethodSizeMockTransformer extends MethodMockTransformer
Modifier and Type | Field and Description |
---|---|
private static int |
MAX_METHOD_CODE_LENGTH_LIMIT |
Constructor and Description |
---|
MethodSizeMockTransformer(TransformStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
private boolean |
isMethodSizeExceeded(javassist.CtMethod method) |
javassist.CtClass |
transform(javassist.CtClass clazz) |
modifyMethod
getStrategy, transform
private static final int MAX_METHOD_CODE_LENGTH_LIMIT
public MethodSizeMockTransformer(TransformStrategy strategy)
public javassist.CtClass transform(javassist.CtClass clazz) throws javassist.CannotCompileException, javassist.NotFoundException
transform
in class AbstractJavaAssistMockTransformer
javassist.CannotCompileException
javassist.NotFoundException
private boolean isMethodSizeExceeded(javassist.CtMethod method)