@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface MockMethod
| Modifier and Type | Optional Element and Description |
|---|---|
MockScope |
scope
specify the effective scope of the mock method
|
Class<?> |
targetClass
explicit set target class instead of adding to parameter list
|
String |
targetMethod
mock specified method instead of method with same name
|
public abstract String targetMethod
public abstract Class<?> targetClass
public abstract MockScope scope
Copyright © 2021. All rights reserved.