/** * Copyright (c) 2007 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 - Initial API and implementation */ package org.eclipse.emf.test.examples; import junit.framework.Test; import junit.framework.TestSuite; public class AllSuites extends TestSuite { public static final String PLUGIN_ID = "org.eclipse.emf.test.examples"; private static Test[] suites = new Test []{ HTMLExporterTest.suite() ,JavaTest.suite() }; public static Test suite() { return new AllSuites("EMF Examples JUnit Test Suite"); } public AllSuites() { super(); populateSuite(); } public AllSuites(Class<?> theClass) { super(theClass); populateSuite(); } public AllSuites(String name) { super(name); populateSuite(); } protected void populateSuite() { for (int i = 0; i < suites.length; i++) { addTest(suites[i]); } } }