ParameterizedTest with @CsvSource
This lesson demonstrates the use of @CsvSource to pass different arguments to @ParameterizedTest.
We'll cover the following...
@CsvSource
@CsvSource
allows you to provide parameter lists as comma-separated custom-delimiter separated values. @CsvSource
annotation uses single quote along with comma-separated delimiter to distinguish a csv value from others.
For e.g -
- {“one, two”} will result to 2 arguments as - “one”, “two”.
- {“one, ‘two, three’”} will