Class FieldInitializer.ParameterizedConstructorInstantiator

java.lang.Object
org.mockito.internal.util.reflection.FieldInitializer.ParameterizedConstructorInstantiator
All Implemented Interfaces:
FieldInitializer.ConstructorInstantiator
Enclosing class:
FieldInitializer

static class FieldInitializer.ParameterizedConstructorInstantiator extends Object implements FieldInitializer.ConstructorInstantiator
Constructor instantiating strategy for parameterized constructors.

Choose the constructor with the highest number of parameters, then call the ConstructorArgResolver to get actual argument instances. If the argResolver fail, then a technical MockitoException is thrown is thrown. Otherwise the instance is created with the resolved arguments.