diff options
author | Quentin Le Menez | 2018-02-15 16:10:08 +0000 |
---|---|---|
committer | Quentin Le Menez | 2018-03-11 14:42:01 +0000 |
commit | ba98ab1ef4202d0489df0ae2dd2aee8fe6f378d4 (patch) | |
tree | 5b68b2fd4d2a6880266ccecb9d8cda14b6cb4d48 /tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/generation/ProfileDiagramGenerateTestsWorkflow.xtend | |
parent | 78ad0c42795a50af4352c87fc2ac17813a4dac28 (diff) | |
download | org.eclipse.papyrus-ba98ab1ef4202d0489df0ae2dd2aee8fe6f378d4.tar.gz org.eclipse.papyrus-ba98ab1ef4202d0489df0ae2dd2aee8fe6f378d4.tar.xz org.eclipse.papyrus-ba98ab1ef4202d0489df0ae2dd2aee8fe6f378d4.zip |
Bug 531190 - [Releng] Remove generated tests framework and plugins
- Remove the generated tests framework
- Remove the associated dev plugins and nature to the tests plugins
- Remove the xtend files for test generation
- Remove the outdated all encompassing test suite
- Rewire the dev menu plugin to plain old src instead of src/main/java
- Move the junit framework plugins to the root of the junit test folder
Change-Id: Id2c0c18762c7c917de93430d3ace2f48940c1297
Signed-off-by: Quentin Le Menez <quentin.lemenez@cea.fr>
Diffstat (limited to 'tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/generation/ProfileDiagramGenerateTestsWorkflow.xtend')
-rw-r--r-- | tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/generation/ProfileDiagramGenerateTestsWorkflow.xtend | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/generation/ProfileDiagramGenerateTestsWorkflow.xtend b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/generation/ProfileDiagramGenerateTestsWorkflow.xtend deleted file mode 100644 index 6c141521092..00000000000 --- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.profile.tests/src/org/eclipse/papyrus/uml/diagram/profile/tests/generation/ProfileDiagramGenerateTestsWorkflow.xtend +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014, 2015 CEA LIST, Christian W. Damus, 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: - * CEA LIST - Initial API and implementation - * Christian W. Damus - bug 464647 - * - ******************************************************************************/ -package org.eclipse.papyrus.uml.diagram.profile.tests.generation - -import org.eclipse.emf.mwe2.runtime.workflow.WorkflowContextImpl -import org.eclipse.papyrus.tests.framework.mwe.GenerateTestsWorkflow -import org.eclipse.papyrus.tests.framework.gmfgenuml2utp.GMFGen2UTPModule -import org.eclipse.papyrus.tests.framework.gmfgenuml2utp.CreateFromPaletteTest - -/** - * Xtend program for the generation of the Profile Diagram tests. - */ -class ProfileDiagramGenerateTestsWorkflow { - - def static void main(String[] args) { - val workflow = new GenerateTestsWorkflow() - runWorkflow(workflow); - } - - def static void runWorkflow(extension GenerateTestsWorkflow workflow) { - testProjectName = 'org.eclipse.papyrus.uml.diagram.profile.tests' - gmfgenUri = resourceURI('/org.eclipse.papyrus.uml.diagram.profile/model/profilediagram.gmfgen') - testSrcGenLocation = 'test-gen/' - testModel = 'model/ProfileDiagramTest.uml' - - utpModuleFunction = [gmfgen, framework, utp | - new GMFGen2UTPModule(gmfgen, framework, utp) { - override protected void bindTestRules() { - // Inject our custom test transformation rules - bind(CreateFromPaletteTest).to(CustomCreateFromPaletteTest) - } - } => [ - diagramTestPackageName = 'org.eclipse.papyrus.uml.diagram.profile.tests' - topContainerEditPart = 'PackageEditPart'; - ] - ] - - except [ - editPart [ - reason = 'Most tests aren\'t applicable.' - editPart = named('AssociationNodeEditPart') || 'DependencyNodeEditPart' - || 'AssociationBranchEditPart' || 'DependencyBranchEditPart' - ] - editPart [ - critical - reason = 'Cannot generate tests for non-UML elements.' - editPart = named('ShortCutDiagramEditPart') - ] - editPart [ - kind = interactive - reason = 'Pops up dialog to select metaclasses to import.' - editPart = named('MetaclassEditPart') || 'MetaclassEditPartCN' - ] - ] - - run(new WorkflowContextImpl); - } - -} |