Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-02-10 17:47:14 +0000
committerAlexander Kurtakov2020-02-10 17:47:14 +0000
commit19f0153422b59ea5e2c338c0289f41c15b2e48fa (patch)
tree06d9782c0c762dc54ad88822612a0c0d963758ce /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository
parent92f0e0b081f2c514836aa969aaa514a716a22332 (diff)
downloadrt.equinox.p2-19f0153422b59ea5e2c338c0289f41c15b2e48fa.tar.gz
rt.equinox.p2-19f0153422b59ea5e2c338c0289f41c15b2e48fa.tar.xz
rt.equinox.p2-19f0153422b59ea5e2c338c0289f41c15b2e48fa.zip
Convert test suites to JUnit 4 style.
Change-Id: I10cc6714b28beb9f483d0fe92913b82cc7b65146 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/AllTests.java23
1 files changed, 9 insertions, 14 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/AllTests.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/AllTests.java
index 7ce9da580..69be7b1bc 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/AllTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/repository/AllTests.java
@@ -1,32 +1,27 @@
/*******************************************************************************
* Copyright (c) 2009, 2018 Cloudsmith Inc and others.
*
- * This program and the accompanying materials
+ * This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
- *
+ *
* Contributors:
* Cloudsmith Inc - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.p2.tests.repository;
-import junit.framework.*;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
/**
* Performs all automated repository bundle tests.
*/
-public class AllTests extends TestCase {
-
- public static Test suite() {
- TestSuite suite = new TestSuite(AllTests.class.getName());
- suite.addTestSuite(CacheManagerTest.class);
- suite.addTestSuite(RepositoryHelperTest.class);
- suite.addTestSuite(RepositoryExtensionPointTest.class);
- suite.addTestSuite(FileReaderTest2.class);
- suite.addTest(new JUnit4TestAdapter(ChecksumHelperTest.class));
- return suite;
- }
+@RunWith(Suite.class)
+@Suite.SuiteClasses({ CacheManagerTest.class, RepositoryHelperTest.class, RepositoryExtensionPointTest.class,
+ FileReaderTest2.class, ChecksumHelperTest.class })
+public class AllTests {
+ // test suite
}

Back to the top