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) |
modifyMethodgetStrategy, transformprivate 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 AbstractJavaAssistMockTransformerjavassist.CannotCompileExceptionjavassist.NotFoundExceptionprivate boolean isMethodSizeExceeded(javassist.CtMethod method)