Class InjectMocksScanner
java.lang.Object
org.mockito.internal.configuration.injection.scanner.InjectMocksScanner
Scan field for injection.
-
Constructor Summary
ConstructorsConstructorDescriptionInjectMocksScanner
(Class<?> clazz) Create a new InjectMocksScanner for the given clazz on the given instance -
Method Summary
-
Constructor Details
-
InjectMocksScanner
Create a new InjectMocksScanner for the given clazz on the given instance- Parameters:
clazz
- Current class in the hierarchy of the test
-
-
Method Details
-
addTo
Add the fields annotated by @InjectMocks
- Parameters:
mockDependentFields
- Set of fields annotated by @InjectMocks
-