@ParameterizedClass and
@ParameterizedTest.
When an ArgumentsSource provides more arguments than declared by
the parameterized class or method, there might be a bug in the class/method
or the ArgumentsSource. By default, the additional arguments are
ignored. ArgumentCountValidationMode allows you to control how
additional arguments are handled.
ParameterizedClass#argumentCountValidation(), ParameterizedTest#argumentCountValidation()
| Modifier and Type | Field and Description |
|---|---|
| public static final ArgumentCountValidationMode | DEFAULT
Use the default validation mode. |
| public static final ArgumentCountValidationMode | NONE
Use the "none" argument count validation mode. |
| public static final ArgumentCountValidationMode | STRICT
Use the strict argument count validation mode. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ArgumentCountValidationMode | |
| public static ArgumentCountValidationMode[] |
| DEFAULT | back to summary |
|---|---|
| public static final ArgumentCountValidationMode DEFAULT Use the default validation mode. The default validation mode may be changed via the junit.jupiter.params.argumentCountValidation configuration parameter (see the User Guide for details on configuration parameters). | |
| NONE | back to summary |
|---|---|
| public static final ArgumentCountValidationMode NONE Use the "none" argument count validation mode. When there are more arguments provided than declared by the parameterized class or method, these additional arguments are ignored. | |
| STRICT | back to summary |
|---|---|
| public static final ArgumentCountValidationMode STRICT Use the strict argument count validation mode. When there are more arguments provided than declared by the parameterized class or method, this raises an error. | |
| ArgumentCountValidationMode | back to summary |
|---|---|
| private ArgumentCountValidationMode() | |
| valueOf | back to summary |
|---|---|
| public static ArgumentCountValidationMode valueOf(String name) | |
| values | back to summary |
|---|---|
| public static ArgumentCountValidationMode[] values() | |