public final class Mocker extends Object
| Modifier and Type | Method and Description |
|---|---|
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 © 2020. All rights reserved.