Skip to content

Commit

Permalink
Remove usage of IPlatformRunnable in tests
Browse files Browse the repository at this point in the history
The interface is no longer available in recent versions of the platform.

Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
  • Loading branch information
pcdavid committed Aug 5, 2022
1 parent 6f7c39e commit e61d21e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
@@ -1,7 +1,7 @@
/**
* <copyright>
*
* 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
Expand All @@ -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());
Expand All @@ -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$
}

}
@@ -1,7 +1,7 @@
/**
* <copyright>
*
* 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
Expand All @@ -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());
Expand All @@ -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$
}
}

0 comments on commit e61d21e

Please sign in to comment.