|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mockito.internal.configuration.InjectingAnnotationEngine
public class InjectingAnnotationEngine
Constructor Summary | |
---|---|
InjectingAnnotationEngine()
|
Method Summary | |
---|---|
java.lang.Object |
createMockFor(java.lang.annotation.Annotation annotation,
java.lang.reflect.Field field)
Deprecated. |
void |
injectMocks(java.lang.Object testClassInstance)
Initializes mock/spies dependencies for objects annotated with @InjectMocks for given testClassInstance. |
void |
process(java.lang.Class<?> clazz,
java.lang.Object testInstance)
Process the fields of the test instance and create Mocks, Spies, Captors and inject them on fields annotated @InjectMocks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InjectingAnnotationEngine()
Method Detail |
---|
@Deprecated public java.lang.Object createMockFor(java.lang.annotation.Annotation annotation, java.lang.reflect.Field field)
DefaultAnnotationEngine
createMockFor
in interface AnnotationEngine
annotation
- Annotationfield
- Field detailsDefaultAnnotationEngine
,
AnnotationEngine.createMockFor(java.lang.annotation.Annotation, java.lang.reflect.Field)
public void process(java.lang.Class<?> clazz, java.lang.Object testInstance)
This code process the test class and the super classes.
process
in interface AnnotationEngine
clazz
- Not usedtestInstance
- The instance of the test, should not be null.AnnotationEngine.process(Class, Object)
public void injectMocks(java.lang.Object testClassInstance)
See examples in javadoc for MockitoAnnotations
class.
testClassInstance
- Test class, usually this
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |