Package org.mockito.plugins
Interface AnnotationEngine
-
- All Known Subinterfaces:
AnnotationEngine
- All Known Implementing Classes:
IndependentAnnotationEngine
,InjectingAnnotationEngine
,SpyAnnotationEngine
public interface AnnotationEngine
Configures test via annotations.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.openMocks(Object)
This plugin mechanism supersedes the
IMockitoConfiguration
in regard of switching mockito components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AnnotationEngine.NoAction
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.AutoCloseable
process(java.lang.Class<?> clazz, java.lang.Object testInstance)
Processes the test instance to configure annotated members.
-