org.mockito.internal.util.reflection
public class FieldInitializationReport extends Object
Constructor and Description |
---|
FieldInitializationReport(Object fieldInstance,
boolean wasInitialized,
boolean wasInitializedUsingConstructorArgs) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
fieldClass()
Returns the class of the actual instance in the field.
|
Object |
fieldInstance()
Returns the actual field instance.
|
boolean |
fieldWasInitialized()
Indicate wether the field was created during the process or not.
|
boolean |
fieldWasInitializedUsingContructorArgs()
Indicate wether the field was created using constructor args.
|
public FieldInitializationReport(Object fieldInstance, boolean wasInitialized, boolean wasInitializedUsingConstructorArgs)
public Object fieldInstance()
public boolean fieldWasInitialized()
true
if created, false
if the field did already hold an instance.public boolean fieldWasInitializedUsingContructorArgs()
true
if field was created using constructor parameters.public Class<?> fieldClass()