|
26 | 26 | * comma-separated value (CSV) files from one or more classpath {@link #resources
|
27 | 27 | * resources} or {@link #files}.
|
28 | 28 | *
|
29 |
| - * <p>The lines of these CSV files will be provided as arguments to the |
30 |
| - * annotated {@code @ParameterizedTest} method. Any line beginning with a |
31 |
| - * {@code #} symbol will be interpreted as a comment and will be ignored. |
| 29 | + * <p>The lines of these CSV files will be provided as arguments to the annotated |
| 30 | + * {@code @ParameterizedTest} method. |
| 31 | + * |
| 32 | + * <p>Any line beginning with a {@code #} symbol will be interpreted as a comment |
| 33 | + * and will be ignored. |
| 34 | + * |
| 35 | + * <p>The column delimiter (defaults to comma) can be customized with either |
| 36 | + * {@link #delimiter} or {@link #delimiterString}. |
| 37 | + * |
| 38 | + * <p>In contrast to the syntax used in {@code @CsvSource}, {@code @CsvFileSource} |
| 39 | + * uses a double quote ({@code "}) as its quote character (see the User Guide for |
| 40 | + * examples). An empty, quoted value ({@code ""}) results in an empty {@link String} |
| 41 | + * unless the {@link #emptyValue} attribute is set; whereas, an entirely <em>empty</em> |
| 42 | + * value is interpreted as a {@code null} reference. By specifying one or more |
| 43 | + * {@link #nullValues} a custom value can be interpreted as a {@code null} reference |
| 44 | + * (see the User Guide for an example). An |
| 45 | + * {@link org.junit.jupiter.params.converter.ArgumentConversionException |
| 46 | + * ArgumentConversionException} is thrown if the target type of a {@code null} |
| 47 | + * reference is a primitive type. |
| 48 | + * |
| 49 | + * <p>NOTE: An <em>unquoted</em> empty value will always be converted to a |
| 50 | + * {@code null} reference regardless of any custom values configured via the |
| 51 | + * {@link #nullValues} attribute. |
| 52 | + * |
| 53 | + * <p>Except within a quoted string, leading and trailing whitespace in a CSV |
| 54 | + * column is trimmed by default. This behavior can be changed by setting the |
| 55 | + * {@link #ignoreLeadingAndTrailingWhitespace} attribute to {@code true}. |
32 | 56 | *
|
33 | 57 | * @since 5.0
|
34 | 58 | * @see CsvSource
|
|
0 commit comments