Explorar el Código

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
tags/REL_5_2_0
Dominik Stadler hace 2 años
padre
commit
684f35d3cb

+ 2
- 2
poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java Ver fichero

@@ -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);

Cargando…
Cancelar
Guardar