static class FieldInitializer.NoArgConstructorInstantiator extends java.lang.Object implements FieldInitializer.ConstructorInstantiator
If a no-arg constructor can be found then the instance is created using this constructor. Otherwise a technical MockitoException is thrown.
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Field |
field |
private java.lang.Object |
testClass |
Constructor and Description |
---|
NoArgConstructorInstantiator(java.lang.Object testClass,
java.lang.reflect.Field field)
Internal, checks are done by FieldInitializer.
|
Modifier and Type | Method and Description |
---|---|
FieldInitializationReport |
instantiate() |
private final java.lang.Object testClass
private final java.lang.reflect.Field field
NoArgConstructorInstantiator(java.lang.Object testClass, java.lang.reflect.Field field)
public FieldInitializationReport instantiate()
instantiate
in interface FieldInitializer.ConstructorInstantiator