Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Le Menez2018-02-15 11:10:08 -0500
committerQuentin Le Menez2018-03-11 10:42:01 -0400
commitba98ab1ef4202d0489df0ae2dd2aee8fe6f378d4 (patch)
tree5b68b2fd4d2a6880266ccecb9d8cda14b6cb4d48 /tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/tests/generation/CustomCreateFromPaletteTest.xtend
parent78ad0c42795a50af4352c87fc2ac17813a4dac28 (diff)
downloadorg.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.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/tests/generation/CustomCreateFromPaletteTest.xtend')
-rw-r--r--tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/tests/generation/CustomCreateFromPaletteTest.xtend49
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/tests/generation/CustomCreateFromPaletteTest.xtend b/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/tests/generation/CustomCreateFromPaletteTest.xtend
deleted file mode 100644
index 78cf7e4b9ea..00000000000
--- a/tests/junit/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz.tests/test/org/eclipse/papyrus/uml/diagram/clazz/tests/generation/CustomCreateFromPaletteTest.xtend
+++ /dev/null
@@ -1,49 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2015 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:
- * Christian W. Damus - Initial API and implementation
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.uml.diagram.clazz.tests.generation
-
-import javax.inject.Inject
-import javax.inject.Singleton
-import org.eclipse.papyrus.tests.framework.gmfgenuml2utp.CreateFromPaletteTest
-import org.eclipse.papyrus.tests.framework.gmfgenuml2utp.TransformationUtilities
-import org.eclipse.uml2.uml.CallOperationAction
-import org.eclipse.uml2.uml.InstanceSpecification
-
-/**
- * Customization of the create-from-palette test UTP transformation for class diagrams, to
- * account for specific custom editing behaviours of this diagram.
- */
- @Singleton
-class CustomCreateFromPaletteTest extends CreateFromPaletteTest {
- @Inject extension TransformationUtilities
- final String defaultAssociationName = 'srcMul'
-
- override protected def toCallTestLinkOperationActivity(InstanceSpecification linkEditPart, InstanceSpecification sourceEditPart, InstanceSpecification targetEditPart) {
- super.toCallTestLinkOperationActivity(linkEditPart, sourceEditPart, targetEditPart) => [
- if (linkEditPart.editPart == 'AssociationEditPart') {
- // Insert a parameter for the association name (invokes a different overloaded variant of the framework method)
- ownedNodes.filter(CallOperationAction).head.arguments.add(3, defaultAssociationName.toValuePin('initialName'))
- }
- ]
- }
-
- override protected def toCallTestLinkOperationActivity(InstanceSpecification linkEditPart, InstanceSpecification sourceEditPart, InstanceSpecification targetEditPart, InstanceSpecification containerEditPart) {
- super.toCallTestLinkOperationActivity(linkEditPart, sourceEditPart, targetEditPart, containerEditPart) => [
- if (linkEditPart.editPart == 'AssociationEditPart') {
- // Insert a parameter for the association name (invokes a different overloaded variant of the framework method)
- ownedNodes.filter(CallOperationAction).head.arguments.add(4, defaultAssociationName.toValuePin('initialName'))
- }
- ]
- }
-}

Back to the top