From e61d21eaaeba5b49cd750b0ce70f9f5394083a90 Mon Sep 17 00:00:00 2001 From: Pierre-Charles David Date: Fri, 5 Aug 2022 09:36:35 +0200 Subject: [PATCH] Remove usage of IPlatformRunnable in tests The interface is no longer available in recent versions of the platform. Signed-off-by: Pierre-Charles David --- .../org/eclipse/emf/query/ocl/tests/AllTests.java | 13 ++----------- .../src/org/eclipse/emf/query/tests/AllTests.java | 14 ++------------ 2 files changed, 4 insertions(+), 23 deletions(-) diff --git a/org.eclipse.emf.query.ocl.tests/src/org/eclipse/emf/query/ocl/tests/AllTests.java b/org.eclipse.emf.query.ocl.tests/src/org/eclipse/emf/query/ocl/tests/AllTests.java index 23ea686..da2f989 100644 --- a/org.eclipse.emf.query.ocl.tests/src/org/eclipse/emf/query/ocl/tests/AllTests.java +++ b/org.eclipse.emf.query.ocl.tests/src/org/eclipse/emf/query/ocl/tests/AllTests.java @@ -1,7 +1,7 @@ /** * * - * Copyright (c) 2005, 2007 IBM Corporation and others. + * Copyright (c) 2005, 2007, 2022 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 @@ -17,20 +17,16 @@ package org.eclipse.emf.query.ocl.tests; -import java.util.Arrays; - import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.textui.TestRunner; -import org.eclipse.core.runtime.IPlatformRunnable; - /** * @author Govin Varadarajan (gvaradar) * */ -public class AllTests extends TestCase implements IPlatformRunnable { +public class AllTests extends TestCase { public static void main(String[] args) { TestRunner.run(suite()); @@ -48,9 +44,4 @@ public AllTests() { super(""); //$NON-NLS-1$ } - public Object run(Object args) throws Exception { - TestRunner.run(suite()); - return Arrays.asList(new String[] { "Please see raw test suite output for details." }); //$NON-NLS-1$ - } - } diff --git a/org.eclipse.emf.query.tests/src/org/eclipse/emf/query/tests/AllTests.java b/org.eclipse.emf.query.tests/src/org/eclipse/emf/query/tests/AllTests.java index 34d13cd..dce3dc2 100644 --- a/org.eclipse.emf.query.tests/src/org/eclipse/emf/query/tests/AllTests.java +++ b/org.eclipse.emf.query.tests/src/org/eclipse/emf/query/tests/AllTests.java @@ -1,7 +1,7 @@ /** * * - * Copyright (c) 2002, 2007 IBM Corporation and others. + * Copyright (c) 2002, 2007, 2022 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 @@ -17,21 +17,16 @@ package org.eclipse.emf.query.tests; -import java.util.Arrays; - import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import junit.textui.TestRunner; -import org.eclipse.core.runtime.IPlatformRunnable; - /** * @author Yasser Lulu * */ -@SuppressWarnings("deprecation") -public class AllTests extends TestCase implements IPlatformRunnable { +public class AllTests extends TestCase { public static void main(String[] args) { TestRunner.run(suite()); @@ -49,9 +44,4 @@ public static Test suite() { public AllTests() { super(""); //$NON-NLS-1$ } - - public Object run(Object args) throws Exception { - TestRunner.run(suite()); - return Arrays.asList(new String[] { "Please see raw test suite output for details." }); //$NON-NLS-1$ - } }