| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> Constructor | findBestConstructor(Class<T> spiInterface, Class<? extends T> implementationClass)
Find the "best" constructor for the supplied implementation class. |
| private static <T> Constructor | |
| pack-priv static <T> T | instantiate(Class<T> spiInterface, Class<? extends T> implementationClass, ExtensionContext extensionContext)
|
| ParameterizedTestSpiInstantiator | back to summary |
|---|---|
| private ParameterizedTestSpiInstantiator() | |
| findBestConstructor | back to summary |
|---|---|
| private static <T> Constructor Find the "best" constructor for the supplied implementation class. For backward compatibility, it first checks for a single constructor and returns that. If there are multiple constructors, it checks for a default constructor which takes precedence over any other constructors. Otherwise, this method throws an exception stating that it failed to find a suitable constructor. | |
| findConstructor | back to summary |
|---|---|
private static <T> Constructor
| |
| instantiate | back to summary |
|---|---|
| pack-priv static <T> T instantiate(Class<T> spiInterface, Class<? extends T> implementationClass, ExtensionContext extensionContext) | |