Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mockito.internal.configuration.injection.scanner
Class InjectMocksScanner

    java.lang.Object
      org.mockito.internal.configuration.injection.scanner.InjectMocksScanner

    public class InjectMocksScanner

extends java.lang.Object

Scan field for injection.

Constructor Summary
`InjectMocksScanner(java.lang.Class<?> clazz)` Create a new InjectMocksScanner for the given clazz on the given instance

Method Summary
`void` | `addTo(java.util.Set<java.lang.reflect.Field> mockDependentFields)` Add the fields annotated by @`InjectMocks`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### InjectMocksScanner

    public InjectMocksScanner(java.lang.Class<?> clazz)

  Create a new InjectMocksScanner for the given clazz on the given instance

  Parameters:
    `clazz` - Current class in the hierarchy of the test

Method Detail

### addTo

    public void addTo(java.util.Set<java.lang.reflect.Field> mockDependentFields)

  Add the fields annotated by @`InjectMocks`

  Parameters:
    `mockDependentFields` - Set of fields annotated by @`InjectMocks`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD