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
Constructors Constructor Description InjectMocksScanner(java.lang.Class<?> clazz)
Create a new InjectMocksScanner for the given clazz on the given instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTo(java.util.Set<java.lang.reflect.Field> mockDependentFields)
Add the fields annotated by @InjectMocks
-
-
-
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
-
-