/******************************************************************************* * Copyright (c) 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.emf.compare.diagram.ide.ecoretools.tests.suite; import junit.framework.JUnit4TestAdapter; import junit.framework.Test; import junit.textui.TestRunner; import org.eclipse.emf.compare.ComparePackage; import org.eclipse.emf.compare.diagram.ide.ecoretools.tests.nodechanges.NodechangesTest; import org.eclipse.emf.compare.diagram.internal.extensions.ExtensionsPackage; import org.eclipse.emf.compare.tests.suite.CompareTestSuite; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.EcorePackage; import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl; import org.eclipse.gmf.runtime.emf.core.resources.GMFResourceFactory; import org.eclipse.gmf.runtime.notation.NotationPackage; import org.junit.BeforeClass; import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; /** * This test suite allows us to launch all tests for EMF Compare at once. * * @author <a href="mailto:laurent.goubet@obeo.fr">Laurent Goubet</a> */ @RunWith(Suite.class) @SuiteClasses({NodechangesTest.class }) public class AllTests { /** * Standalone launcher for all of compare's tests. * * @generated */ public static void main(String[] args) { TestRunner.run(suite()); } /** * This will return a suite populated with all tests available through this class. * * @generated */ public static Test suite() { return new JUnit4TestAdapter(CompareTestSuite.class); } @BeforeClass public static void fillEMFRegistries() { EPackage.Registry.INSTANCE.put(ComparePackage.eNS_URI, ComparePackage.eINSTANCE); EPackage.Registry.INSTANCE.put(ExtensionsPackage.eNS_URI, ExtensionsPackage.eINSTANCE); EPackage.Registry.INSTANCE.put(EcorePackage.eNS_URI, EcorePackage.eINSTANCE); EPackage.Registry.INSTANCE.put(NotationPackage.eNS_URI, NotationPackage.eINSTANCE); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("ecorediag", //$NON-NLS-1$ new GMFResourceFactory()); Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("ecore", //$NON-NLS-1$ new EcoreResourceFactoryImpl()); } }