public class DefaultAnnotationEngine extends java.lang.Object implements AnnotationEngine
Mock or @Captor.
The process(Class, Object) method implementation does not process super classes!
MockitoAnnotations| Constructor and Description |
|---|
DefaultAnnotationEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createMockFor(java.lang.annotation.Annotation annotation,
java.lang.reflect.Field field) |
void |
process(java.lang.Class<?> clazz,
java.lang.Object testInstance)
Allows extending the interface to perform action on specific fields on the test class.
|
public java.lang.Object createMockFor(java.lang.annotation.Annotation annotation,
java.lang.reflect.Field field)
createMockFor in interface AnnotationEngineannotation - Annotationfield - Field detailspublic void process(java.lang.Class<?> clazz,
java.lang.Object testInstance)
AnnotationEngineSee the implementation of this method to figure out what is it for.
process in interface AnnotationEngineclazz - Class where to extract field information, check implementation for detailstestInstance - Test instance