mirror of
https://github.com/alibaba/testable-mock.git
synced 2025-01-25 20:00:17 +08:00
add targetClass parameter
This commit is contained in:
parent
6c0bd7de46
commit
74b68d495a
@ -1,5 +1,6 @@
|
|||||||
package com.alibaba.testable.core.annotation;
|
package com.alibaba.testable.core.annotation;
|
||||||
|
|
||||||
|
import javax.lang.model.type.NullType;
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,4 +19,10 @@ public @interface MockMethod {
|
|||||||
*/
|
*/
|
||||||
String targetMethod() default "";
|
String targetMethod() default "";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* explicit set target class instead of adding to parameter list
|
||||||
|
* @return target class type
|
||||||
|
*/
|
||||||
|
Class<?> targetClass() default NullType.class;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user