|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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)
|
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 |
|---|
public InjectingAnnotationEngine()
| Method Detail |
|---|
public java.lang.Object createMockFor(java.lang.annotation.Annotation annotation,
java.lang.reflect.Field field)
createMockFor in interface AnnotationEngine
public void process(java.lang.Class<?> context,
java.lang.Object testClass)
AnnotationEngineSee the implementation of this method to figure out what is it for
process in interface AnnotationEnginepublic void injectMocks(java.lang.Object testClass)
See examples in javadoc for MockitoAnnotations class.
testClass - Test class, usually this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||