public interface MockerProvider
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ASSIGNATIONS_PACKAGE |
default <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 © 2021. All rights reserved.