org.mockito.internal.configuration
Class InjectingAnnotationEngine

java.lang.Object
  extended by org.mockito.internal.configuration.InjectingAnnotationEngine
All Implemented Interfaces:
AnnotationEngine

public class InjectingAnnotationEngine
extends java.lang.Object
implements AnnotationEngine

See MockitoAnnotations


Constructor Summary
InjectingAnnotationEngine()
           
 
Method Summary
 java.lang.Object createMockFor(java.lang.annotation.Annotation annotation, java.lang.reflect.Field field)
           
 void injectMocks(java.lang.Object testClass)
          Initializes mock/spies dependencies for objects annotated with @InjectMocks for given testClass.
 void process(java.lang.Class<?> context, java.lang.Object testClass)
          Allows extending the interface to perform action on specific fields on the test class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectingAnnotationEngine

public InjectingAnnotationEngine()
Method Detail

createMockFor

public java.lang.Object createMockFor(java.lang.annotation.Annotation annotation,
                                      java.lang.reflect.Field field)
Specified by:
createMockFor in interface AnnotationEngine

process

public void process(java.lang.Class<?> context,
                    java.lang.Object testClass)
Description copied from interface: AnnotationEngine
Allows extending the interface to perform action on specific fields on the test class

See the implementation of this method to figure out what is it for

Specified by:
process in interface AnnotationEngine

injectMocks

public void injectMocks(java.lang.Object testClass)
Initializes mock/spies dependencies for objects annotated with @InjectMocks for given testClass.

See examples in javadoc for MockitoAnnotations class.

Parameters:
testClass - Test class, usually this