public interface MockerProvider
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ASSIGNATIONS_PACKAGE |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
mock(Class<T> type,
Annotation... annotations) |
Object |
mock(Type type,
Type context,
Annotation... annotations) |
<T> T mock(Class<T> type, Annotation... annotations)
T - 类型泛型type - 模拟的数据类型annotations - 模拟配置Object mock(Type type, Type context, Annotation... annotations)
type - 要模拟类型的type,需要是具体的,不能有TypeVariablecontext - TypeVariable检索上下文annotations - 模拟配置Copyright © 2020. All rights reserved.