add targetClass parameter

This commit is contained in:
金戟 2021-01-04 23:31:58 +08:00
parent 6c0bd7de46
commit 74b68d495a

View File

@ -1,5 +1,6 @@
package com.alibaba.testable.core.annotation;
import javax.lang.model.type.NullType;
import java.lang.annotation.*;
/**
@ -18,4 +19,10 @@ public @interface MockMethod {
*/
String targetMethod() default "";
/**
* explicit set target class instead of adding to parameter list
* @return target class type
*/
Class<?> targetClass() default NullType.class;
}