public class DefaultAnnotationEngine extends 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 |
---|---|
Object |
createMockFor(Annotation annotation,
Field field) |
void |
process(Class<?> clazz,
Object testInstance)
Allows extending the interface to perform action on specific fields on the test class.
|
public Object createMockFor(Annotation annotation, Field field)
createMockFor
in interface AnnotationEngine
annotation
- Annotationfield
- Field detailspublic void process(Class<?> clazz, Object testInstance)
AnnotationEngine
See the implementation of this method to figure out what is it for.
process
in interface AnnotationEngine
clazz
- Class where to extract field information, check implementation for detailstestInstance
- Test instance