Skip to content

Commit 61c678d

Browse files
committed
Assert test method names are printed
1 parent 4dd14d6 commit 61c678d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/JUnitStartTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
package platform.tooling.support.tests;
1212

1313
import static org.junit.jupiter.api.Assertions.assertEquals;
14+
import static org.junit.jupiter.api.Assertions.assertTrue;
1415
import static platform.tooling.support.tests.Projects.copyToWorkspace;
1516

1617
import java.nio.file.Files;
@@ -82,6 +83,7 @@ void junitRun(@FilePrefix("junit-run") OutputFiles outputFiles) throws Exception
8283
.startAndWait();
8384

8485
assertEquals(0, result.exitCode());
86+
assertTrue(result.stdOut().contains("addition()"), result.stdOut());
8587
}
8688

8789
@Test
@@ -96,6 +98,7 @@ void junitRunClass(@FilePrefix("junit-run-class") OutputFiles outputFiles) throw
9698
.startAndWait();
9799

98100
assertEquals(0, result.exitCode());
101+
assertTrue(result.stdOut().contains("substraction()"), result.stdOut());
99102
}
100103

101104
@Test
@@ -110,6 +113,7 @@ void junitRunModule(@FilePrefix("junit-run-Module") OutputFiles outputFiles) thr
110113
.startAndWait();
111114

112115
assertEquals(0, result.exitCode());
116+
assertTrue(result.stdOut().contains("multiplication()"), result.stdOut());
113117
}
114118

115119
}

0 commit comments

Comments
 (0)