| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnnotationEngine
Configures mock creation logic behind @Mock, @Captor and @Spy annotations
 If you are interested then see implementations or source code of MockitoAnnotations.initMocks(Object)
| Method Summary | |
|---|---|
|  java.lang.Object | createMockFor(java.lang.annotation.Annotation annotation,
              java.lang.reflect.Field field)Deprecated. Please use AnnotationProcessor 'execute' method instead that is more robust Creates mock, ArgumentCaptor or wraps field instance in spy object. Only if of correct annotation type. | 
|  void | process(java.lang.Class<?> context,
        java.lang.Object testClass)Allows extending the interface to perform action on specific fields on the test class | 
| Method Detail | 
|---|
@Deprecated
java.lang.Object createMockFor(java.lang.annotation.Annotation annotation,
                                          java.lang.reflect.Field field)
Creates mock, ArgumentCaptor or wraps field instance in spy object. Only if of correct annotation type.
annotation - field - 
void process(java.lang.Class<?> context,
             java.lang.Object testClass)
See the implementation of this method to figure out what is it for
context - testClass - | 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||