Skip to content

Commit d57693f

Browse files
committed
Remove unused JUnit Rule and TestName imports from various test classes
1 parent 9c171a0 commit d57693f

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/PartRenderingEngineTests.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
import org.junit.Ignore;
7272
import org.junit.Rule;
7373
import org.junit.Test;
74-
import org.junit.rules.TestName;
7574
import org.junit.rules.TestWatcher;
7675
import org.osgi.service.log.LogLevel;
7776
import org.osgi.service.log.LogListener;
@@ -99,8 +98,6 @@ public class PartRenderingEngineTests {
9998
private boolean logged = false;
10099
private Consumer<RuntimeException> runtimeExceptionHandler;
101100

102-
@Rule
103-
public TestName testName = new TestName();
104101

105102
@Before
106103
public void setUp() {

tests/org.eclipse.tests.urischeme/src/org/eclipse/urischeme/internal/registration/TestUnitRegistrationWindows.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,10 @@
2626
import org.junit.AfterClass;
2727
import org.junit.Before;
2828
import org.junit.BeforeClass;
29-
import org.junit.Rule;
3029
import org.junit.Test;
31-
import org.junit.rules.TestName;
3230

3331
public class TestUnitRegistrationWindows {
3432

35-
@Rule
36-
public TestName name = new TestName();
3733

3834
private static final String PATH_TO_OTHER_APPLICATION_EXE = "c:\\path\\to\\otherApplication.exe";
3935
private static final String PATH_TO_ECLIPSE_EXE = "c:\\path\\with spaces\\to\\eclipse\\Eclipse.exe";

tests/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/TextEditorPluginTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
import java.util.Random;
2222

2323
import org.junit.FixMethodOrder;
24-
import org.junit.Rule;
2524
import org.junit.Test;
26-
import org.junit.rules.TestName;
2725
import org.junit.runners.MethodSorters;
2826

2927
import org.eclipse.ui.internal.texteditor.HistoryTracker;
@@ -36,8 +34,6 @@
3634
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
3735
public class TextEditorPluginTest {
3836

39-
@Rule
40-
public TestName testName = new TestName();
4137

4238
Random rand = new Random(55); //pseudo-random for repeatability
4339

0 commit comments

Comments
 (0)