Commit ccd5e07
committed
Fix test leak detection in JUnit tests
While working on eclipse-platform#2685
and specifically trying to verify that change fixes the comment below \*
I realized that a migration step was missed changing the suites from
JUnit4 to JUnit5.
On JUnit5 the `@BeforeAll` and `@AfterAll` only apply to the tests in
the class itself, not to `@SelectClasses` too.
Instead JUnit5 provides `@BeforeSuite` and `@AfterSuite`
\* this comment:
> For some reason, printing to System.err in JUnit test has no effect1 parent c308fd1 commit ccd5e07
File tree
1 file changed
+7
-7
lines changed- tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit
1 file changed
+7
-7
lines changedLines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments