Class DefaultAnnotationEngine
java.lang.Object
org.mockito.internal.configuration.DefaultAnnotationEngine
- All Implemented Interfaces:
AnnotationEngine
Initializes fields annotated with @
Mock or @Captor.
The process(Class, Object) method implementation does not process super classes!
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMockFor(Annotation annotation, Field field) voidAllows extending the interface to perform action on specific fields on the test class.
-
Constructor Details
-
DefaultAnnotationEngine
public DefaultAnnotationEngine()
-
-
Method Details
-
createMockFor
- Specified by:
createMockForin interfaceAnnotationEngine- Parameters:
annotation- Annotationfield- Field details
-
process
Description copied from interface:AnnotationEngineAllows extending the interface to perform action on specific fields on the test class.See the implementation of this method to figure out what is it for.
- Specified by:
processin interfaceAnnotationEngine- Parameters:
clazz- Class where to extract field information, check implementation for detailstestInstance- Test instance
-