Class IndependentAnnotationEngine

java.lang.Object
org.mockito.internal.configuration.IndependentAnnotationEngine
All Implemented Interfaces:
AnnotationEngine

public class IndependentAnnotationEngine extends Object implements AnnotationEngine
Initializes fields annotated with @Mock or @Captor.

The process(Class, Object) method implementation does not process super classes!

See Also:
  • Constructor Details

    • IndependentAnnotationEngine

      public IndependentAnnotationEngine()
  • Method Details

    • process

      public AutoCloseable process(Class<?> clazz, Object testInstance)
      Description copied from interface: AnnotationEngine
      Processes the test instance to configure annotated members.
      Specified by:
      process in interface AnnotationEngine
      Parameters:
      clazz - Class where to extract field information, check implementation for details
      testInstance - Test instance