Parameters and repeated tests
One test method, many cases. A @ParameterizedTest takes its arguments from a source: @ValueSource for ints, strings and booleans, one report line per case; @CsvSource for several arguments in one line, with quoted values and null; @CsvFileSource for a file on the class path and @MethodSource for a method that returns Arguments. The part adds @EnumSource with an excluded constant and @NullSource, then @RepeatedTest for a case that must hold again and again, and @TestFactory for tests that are built at run time from data the class loads.
4.1
One method, many values
@ParameterizedTest with @ValueSource, ints, strings, booleans, one report line per case
Open
4.2
Several arguments per case
@CsvSource, quoted values, null, the display name of a case
Open
4.3
A CSV file and a method
@CsvFileSource from the class path, @MethodSource and Arguments
Open
4.4
Enums and nulls
@EnumSource, an excluded constant, @NullSource
Open
4.5
Repeated and dynamic tests
@RepeatedTest, @TestFactory, tests built at run time
Open