October 2017
Intermediate to advanced
350 pages
7h 29m
English
Another way to specify the source of arguments for parameterized tests is using comma-separated values (CSV). This can be done using the annotation @CsvSource, which allows to embed CSV content as String in the value of the annotation.
Consider the following example. It contains a Jupiter parameterized test (named testWithCsvSource), which is using the annotation @CsvSource. This annotation contains an array of Strings. In each element of the array, we can see there is a different value separated by commas.
Read now
Unlock full access