@Deprecated public class POJOMocker extends Object
| Constructor and Description |
|---|
POJOMocker()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <C> C |
mock(Class<C> clz)
Deprecated.
|
static Object |
mock(Type type)
Deprecated.
根据指定的类型模拟数据
|
static Object |
mock(Type type,
Class<?> contextClass)
Deprecated.
|
static Object |
mock(Type type,
POJOMockInfo pmi,
Class<?> contextClass)
Deprecated.
根据指定的类型和模拟条件模拟数据
|
static void |
registMocker(AbstractClassInstanceMocker classInstanceMocker)
Deprecated.
向系统中注册一个Class的mocker
|
public static <C> C mock(Class<C> clz) throws UnableMockException, UnsupportedTypeException
public static Object mock(Type type) throws UnableMockException, UnsupportedTypeException
type - IllegalAccessExceptionMockExceptionUnableMockExceptionUnsupportedTypeExceptionpublic static Object mock(Type type, Class<?> contextClass) throws UnableMockException, UnsupportedTypeException
public static Object mock(Type type, POJOMockInfo pmi, Class<?> contextClass) throws UnableMockException, UnsupportedTypeException
type - pmi - UnableMockExceptionUnsupportedTypeExceptionIllegalAccessExceptionpublic static void registMocker(AbstractClassInstanceMocker classInstanceMocker)
classInstanceMocker - Copyright © 2018. All rights reserved.