Class NuxeoInjectingAnnotationEngine

  • All Implemented Interfaces:
    org.mockito.configuration.AnnotationEngine

    public class NuxeoInjectingAnnotationEngine
    extends org.mockito.internal.configuration.InjectingAnnotationEngine
    Since:
    5.7.8
    • 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.

        1. First create Mocks, Spies, Captors.
        2. Then try to inject them.
        Specified by:
        process in interface org.mockito.configuration.AnnotationEngine
        Overrides:
        process in class org.mockito.internal.configuration.InjectingAnnotationEngine
        Parameters:
        clazz - Not used
        testInstance - The instance of the test, should not be null.
        See Also:
        AnnotationEngine.process(Class, Object)