Class MockAnnotationProcessor
- java.lang.Object
-
- org.mockito.internal.configuration.MockAnnotationProcessor
-
- All Implemented Interfaces:
FieldAnnotationProcessor<Mock>
public class MockAnnotationProcessor extends java.lang.Object implements FieldAnnotationProcessor<Mock>
Instantiates a mock on a field annotated byMock
-
-
Constructor Summary
Constructors Constructor Description MockAnnotationProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.Class<?>
inferParameterizedType(java.lang.reflect.Type type, java.lang.String name, java.lang.String sort)
java.lang.Object
process(Mock annotation, java.lang.reflect.Field field)
static java.lang.Object
processAnnotationForMock(Mock annotation, java.lang.Class<?> type, Supplier<java.lang.reflect.Type> genericType, java.lang.String name)
-
-
-
Method Detail
-
process
public java.lang.Object process(Mock annotation, java.lang.reflect.Field field)
- Specified by:
process
in interfaceFieldAnnotationProcessor<Mock>
-
processAnnotationForMock
public static java.lang.Object processAnnotationForMock(Mock annotation, java.lang.Class<?> type, Supplier<java.lang.reflect.Type> genericType, java.lang.String name)
-
inferParameterizedType
static java.lang.Class<?> inferParameterizedType(java.lang.reflect.Type type, java.lang.String name, java.lang.String sort)
-
-