public class InjectMocksScanner
extends java.lang.Object
Constructor | Description |
---|---|
InjectMocksScanner(java.lang.Class<?> clazz) |
Create a new InjectMocksScanner for the given clazz on the given instance
|
Modifier and Type | Method | Description |
---|---|---|
void |
addTo(java.util.Set<java.lang.reflect.Field> mockDependentFields) |
Add the fields annotated by @
InjectMocks |
public InjectMocksScanner(java.lang.Class<?> clazz)
clazz
- Current class in the hierarchy of the testpublic void addTo(java.util.Set<java.lang.reflect.Field> mockDependentFields)
InjectMocks
mockDependentFields
- Set of fields annotated by @InjectMocks