public interface AnnotationEngine
Mockito default engine handles the logic behind @Mock, @Captor, @Spy and @InjectMocks annotations.
This interface is an extension point that make possible to use a different annotation engine allowing to extend or replace mockito default engine.
If you are interested then see implementations or source code of MockitoAnnotations.initMocks(Object)
This plugin mechanism supersedes the IMockitoConfiguration
in regard of switching mockito components.
Modifier and Type | Method and Description |
---|---|
void |
process(Class<?> clazz,
Object testInstance)
Processes the test instance to configure annotated members.
|