| /******************************************************************************* |
| * Copyright (c) 2006, 2012 Obeo. |
| * 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: |
| * Obeo - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.acceleo.standalone.tests.suite; |
| |
| import junit.framework.JUnit4TestAdapter; |
| import junit.framework.Test; |
| import junit.textui.TestRunner; |
| |
| import org.eclipse.acceleo.standalone.tests.compiler.AcceleoParserTests; |
| import org.eclipse.acceleo.standalone.tests.compiler.AcceleoProjectTests; |
| import org.eclipse.acceleo.standalone.tests.generation.GenerationTests; |
| import org.eclipse.acceleo.standalone.tests.loading.LoadingTests; |
| import org.junit.runner.RunWith; |
| import org.junit.runners.Suite; |
| import org.junit.runners.Suite.SuiteClasses; |
| |
| /** |
| * Suite of stand alone unit test. This suite should <b>NOT</b> be launched as an JUnit Eclipse Plugin Test |
| * since all tests have to be launched in stand alone. |
| * |
| * @author <a href="mailto:stephane.begaudeau@obeo.fr">Stephane Begaudeau</a> |
| * @since 3.1 |
| */ |
| @RunWith(Suite.class) |
| @SuiteClasses({LoadingTests.class, GenerationTests.class, AcceleoProjectTests.class, AcceleoParserTests.class, }) |
| public final class AllTests { |
| |
| /** |
| * The constructor. |
| */ |
| private AllTests() { |
| // prevent instantiation. |
| } |
| |
| /** |
| * Launches the test with the given arguments. |
| * |
| * @param args |
| * Arguments of the testCase. |
| */ |
| public static void main(String[] args) { |
| TestRunner.run(suite()); |
| } |
| |
| /** |
| * Creates the {@link junit.framework.TestSuite TestSuite} for all the test. |
| * |
| * @return The test suite containing all the tests |
| */ |
| public static Test suite() { |
| return new JUnit4TestAdapter(AllTests.class); |
| } |
| } |