blob: c351f56dadef80142c96eb89c7c241b9e2edb487 [file] [log] [blame]
/******************************************************************************
* Copyright (c) 2008 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
****************************************************************************/
package org.eclipse.gmf.tests.runtime.emf.core;
import java.util.Arrays;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.textui.TestRunner;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.gmf.tests.runtime.emf.core.resources.GMFResourceModificationManagerTests;
import org.eclipse.gmf.tests.runtime.emf.core.util.EMFCoreUtilTests;
public class AllTests extends TestCase implements IApplication {
public static void main(String[] args) {
TestRunner.run(suite());
}
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(GMFEditingDomainFactoryTests.suite());
suite.addTest(GMFResourceModificationManagerTests.suite());
suite.addTest(EMFCoreUtilTests.suite());
return suite;
}
public AllTests() {
super(""); //$NON-NLS-1$
}
public Object start(IApplicationContext context) throws Exception {
TestRunner.run(suite());
return Arrays
.asList(new String[] { "Please see raw test suite output for details." }); //$NON-NLS-1$
}
public void stop() {
// do nothing
}
}