Configure index in @ParameterizedTest display names

This commit prepends "[{index}] " to all custom display names
configured via @ParameterizedTest.

This provides better diagnostics between the "technical names" reported
on the CI server vs. the "display names" reported within a developer's
IDE.

See gh-23451
This commit is contained in:
Sam Brannen
2019-08-28 17:06:23 +02:00
parent b173a93e72
commit c004ef888c
13 changed files with 16 additions and 17 deletions

View File

@@ -857,7 +857,7 @@ class CronTriggerTests {
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@ParameterizedTest(name = "localDateTime [{0}], time zone [{1}]")
@ParameterizedTest(name = "[{index}] localDateTime[{0}], time zone[{1}]")
@MethodSource("parameters")
@interface ParameterizedCronTriggerTest {
}