Package org.nuxeo.runtime.mockito
Class NuxeoInjectingAnnotationEngine
- java.lang.Object
-
- org.mockito.internal.configuration.InjectingAnnotationEngine
-
- org.nuxeo.runtime.mockito.NuxeoInjectingAnnotationEngine
-
- All Implemented Interfaces:
org.mockito.configuration.AnnotationEngine
public class NuxeoInjectingAnnotationEngine extends org.mockito.internal.configuration.InjectingAnnotationEngine
- Since:
- 5.7.8
-
-
Constructor Summary
Constructors Constructor Description NuxeoInjectingAnnotationEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(Class<?> clazz, Object testInstance)
Process the fields of the test instance and create Mocks, Spies, Captors and inject them on fields annotated @InjectMocks.
-
-
-
Method Detail
-
process
public void process(Class<?> clazz, Object testInstance)
Process the fields of the test instance and create Mocks, Spies, Captors and inject them on fields annotated @InjectMocks.This code process the test class and the super classes.
- First create Mocks, Spies, Captors.
- Then try to inject them.
- Specified by:
process
in interfaceorg.mockito.configuration.AnnotationEngine
- Overrides:
process
in classorg.mockito.internal.configuration.InjectingAnnotationEngine
- Parameters:
clazz
- Not usedtestInstance
- The instance of the test, should not be null.- See Also:
AnnotationEngine.process(Class, Object)
-
-