Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/junit/plugins/junit/org.eclipse.papyrus.junit.framework/src/org/eclipse/papyrus/junit/framework/runner/FragmentTestSuiteClass.java')
-rw-r--r--tests/junit/plugins/junit/org.eclipse.papyrus.junit.framework/src/org/eclipse/papyrus/junit/framework/runner/FragmentTestSuiteClass.java71
1 files changed, 0 insertions, 71 deletions
diff --git a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.framework/src/org/eclipse/papyrus/junit/framework/runner/FragmentTestSuiteClass.java b/tests/junit/plugins/junit/org.eclipse.papyrus.junit.framework/src/org/eclipse/papyrus/junit/framework/runner/FragmentTestSuiteClass.java
deleted file mode 100644
index 8f1e3ed6e93..00000000000
--- a/tests/junit/plugins/junit/org.eclipse.papyrus.junit.framework/src/org/eclipse/papyrus/junit/framework/runner/FragmentTestSuiteClass.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2016 CEA LIST, Christian W. Damus, 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
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Remi Schnekenburger (CEA LIST) remi.schnekenburger@cea.fr - Initial API and implementation
- * Christian W. Damus - bugs 451230, 488791
- *
- *****************************************************************************/
-package org.eclipse.papyrus.junit.framework.runner;
-
-import org.eclipse.core.runtime.Platform;
-import org.osgi.framework.Bundle;
-
-
-/**
- * Test Suite class entry for a test fragment.
- *
- * @deprecated As of 2.0, All test suites should be plug-in bundles, not fragment bundles.
- */
-@Deprecated
-public class FragmentTestSuiteClass implements ITestSuiteClass {
-
- /** unique identifier of the bundle host */
- private final String hostBundleId;
-
- /** qualified name of the test suite class */
- private final String classQualifiedName;
-
- /**
- * Constructor.
- *
- * @param hostBundleId
- * unique identifier of the bundle host
- * @param classQualifiedName
- * qualified name of the test suite class
- */
- public FragmentTestSuiteClass(String hostBundleId, String classQualifiedName) {
- this.hostBundleId = hostBundleId;
- this.classQualifiedName = classQualifiedName;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public Class<?> getMainTestSuiteClass() {
- Bundle bundle = Platform.getBundle(hostBundleId);
- if (bundle == null) {
- System.err.println("Impossible to find bundle: " + hostBundleId);
- } else {
- try {
- Class<?> class_ = bundle.loadClass(classQualifiedName);
- return class_;
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- }
- }
- return null;
- }
-
- @Override
- public String toString() {
- return String.format("FragmentTestSuite %s/%s", hostBundleId, classQualifiedName);
- }
-
-}

Back to the top