Give better names to parameterized tests

Otherwise they cannot be distinguished in the JUnit HTML report

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894449 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2021-10-21 14:17:25 +00:00
parent d2d1783087
commit 684f35d3cb
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ public class TestAllFiles {
return allfiles("extract");
}
@ParameterizedTest(name = "#{index} {0} {1}")
@ParameterizedTest(name = "Extracting - #{index} {0} {1}")
@MethodSource("extractFiles")
void handleExtracting(String file, FileHandlerKnown handler, String password, Class<? extends Throwable> exClass, String exMessage) throws IOException {
if (StressTestUtils.excludeFile(file, EXPECTED_FAILURES)) return;
@ -170,7 +170,7 @@ public class TestAllFiles {
return allfiles("additional");
}
@ParameterizedTest(name = "#{index} {0} {1}")
@ParameterizedTest(name = "Additional - #{index} {0} {1}")
@MethodSource("handleAdditionals")
void handleAdditional(String file, FileHandlerKnown handler, String password, Class<? extends Throwable> exClass, String exMessage) {
System.out.println("Running additionals on "+file);