aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-07-20 04:04:51 -0400
committerAlexander Kurtakov2018-07-20 04:04:51 -0400
commita6f4d2919888e5e438fd79832ad93425259ae88c (patch)
treeedea0ff072d82a22eba9fc5d3e024cd19bf4e0f9
parent67ef33c03ef80d5d6123ce952be41e98b842e89f (diff)
downloadeclipse.platform.runtime-a6f4d2919888e5e438fd79832ad93425259ae88c.tar.gz
eclipse.platform.runtime-a6f4d2919888e5e438fd79832ad93425259ae88c.tar.xz
eclipse.platform.runtime-a6f4d2919888e5e438fd79832ad93425259ae88c.zip
Remove useless suite methods from core.tests.runtime.Y20180723-0635Y20180723-0615I20180722-2000I20180721-1500I20180720-2000
Change-Id: I335deabc58673a14912241fee6524dc770010ed5 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/AllTests.java8
-rw-r--r--tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/PluginVersionIdentifierTest.java12
-rw-r--r--tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/QualifiedNameTest.java15
-rw-r--r--tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/StatusTest.java15
4 files changed, 9 insertions, 41 deletions
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/AllTests.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/AllTests.java
index 95c460242..be6e1c5d7 100644
--- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/AllTests.java
+++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/AllTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -31,14 +31,14 @@ public class AllTests extends TestCase {
suite.addTestSuite(OperationCanceledExceptionTest.class);
suite.addTestSuite(PathTest.class);
suite.addTestSuite(PlatformTest.class);
- suite.addTest(PluginVersionIdentifierTest.suite());
+ suite.addTestSuite(PluginVersionIdentifierTest.class);
suite.addTestSuite(SubMonitorTest.class);
suite.addTestSuite(SubProgressTest.class);
suite.addTestSuite(SubMonitorSmallTicksTest.class);
suite.addTestSuite(ProgressMonitorWrapperTest.class);
- suite.addTest(QualifiedNameTest.suite());
+ suite.addTestSuite(QualifiedNameTest.class);
suite.addTestSuite(SafeRunnerTest.class);
- suite.addTest(StatusTest.suite());
+ suite.addTestSuite(StatusTest.class);
suite.addTestSuite(URIUtilTest.class);
suite.addTestSuite(URLTest.class);
return suite;
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/PluginVersionIdentifierTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/PluginVersionIdentifierTest.java
index 7275ef5ed..488cff998 100644
--- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/PluginVersionIdentifierTest.java
+++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/PluginVersionIdentifierTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.core.tests.runtime;
-import junit.framework.Test;
-import junit.framework.TestSuite;
import org.eclipse.core.runtime.PluginVersionIdentifier;
@Deprecated
@@ -25,14 +23,6 @@ public class PluginVersionIdentifierTest extends RuntimeTest {
super(name);
}
- public static Test suite() {
- TestSuite suite = new TestSuite(PluginVersionIdentifierTest.class.getName());
- suite.addTest(new PluginVersionIdentifierTest("testConstructor"));
- suite.addTest(new PluginVersionIdentifierTest("testEqual"));
- suite.addTest(new PluginVersionIdentifierTest("testComparisons"));
- return suite;
- }
-
public void testConstructor() {
assertEquals("1.0", "123.456.789", new PluginVersionIdentifier(123, 456, 789).toString());
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/QualifiedNameTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/QualifiedNameTest.java
index c65b9c120..08b41c2fb 100644
--- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/QualifiedNameTest.java
+++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/QualifiedNameTest.java
@@ -10,8 +10,8 @@
*******************************************************************************/
package org.eclipse.core.tests.runtime;
-import junit.framework.Test;
-import junit.framework.TestSuite;
+import static org.junit.Assert.assertNotEquals;
+
import org.eclipse.core.runtime.QualifiedName;
/**
@@ -36,15 +36,6 @@ public class QualifiedNameTest extends RuntimeTest {
super(name);
}
- public static Test suite() {
-
- TestSuite suite = new TestSuite(QualifiedNameTest.class.getName());
- suite.addTest(new QualifiedNameTest("testQualifiers"));
- suite.addTest(new QualifiedNameTest("testLocalNames"));
- suite.addTest(new QualifiedNameTest("testEqualsAndHashcode"));
- return suite;
- }
-
public void testQualifiers() {
try {
@@ -111,7 +102,7 @@ public class QualifiedNameTest extends RuntimeTest {
assertTrue("1.1", qN2.equals(qN1));
assertEquals("1.2", qN1.hashCode(), qN2.hashCode());
- assertTrue("2.0", !qN1.equals("org.eclipse.runtime.myClass"));
+ assertNotEquals("2.0", "org.eclipse.runtime.myClass", qN1);
QualifiedName qN3 = new QualifiedName(null, "myClass");
assertTrue("3.0", !qN1.equals(qN3));
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/StatusTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/StatusTest.java
index 2a463a1c3..e0a07c117 100644
--- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/StatusTest.java
+++ b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/StatusTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2015 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,8 +11,6 @@
package org.eclipse.core.tests.runtime;
import java.util.Arrays;
-import junit.framework.Test;
-import junit.framework.TestSuite;
import org.eclipse.core.runtime.*;
public class StatusTest extends RuntimeTest {
@@ -48,17 +46,6 @@ public class StatusTest extends RuntimeTest {
super(name);
}
- public static Test suite() {
- TestSuite suite = new TestSuite(StatusTest.class.getName());
- suite.addTest(new StatusTest("testSingleStatusReturnValues"));
- suite.addTest(new StatusTest("testMultiStatusReturnValues"));
- suite.addTest(new StatusTest("testAdd"));
- suite.addTest(new StatusTest("testAddAll"));
- suite.addTest(new StatusTest("testIsOK"));
- suite.addTest(new StatusTest("testMerge"));
- return suite;
- }
-
@Override
protected void setUp() {
status1 = new Status(status1Severity, status1PluginId, status1Code, status1Message, status1Exception);