public final class Mocker extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Annotation[] |
getTypeAnnotations(Type instanceType) |
static <T> T |
mock(Class<T> type,
Annotation... annotations) |
static Object |
mock(Type type,
Type context,
Annotation... annotations) |
static Object |
mockMethod(Method method) |
static Object |
mockMethod(Method method,
Type instanceType) |
static Object |
mockParameter(Method method,
int index) |
static Object |
mockParameter(Method method,
int index,
Type instanceType) |
public static <T> T mock(Class<T> type, Annotation... annotations)
public static Object mock(Type type, Type context, Annotation... annotations)
public static Annotation[] getTypeAnnotations(Type instanceType)
Copyright © 2022. All rights reserved.