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/framework/org.eclipse.papyrus.tests.framework/src/org/eclipse/papyrus/tests/framework/m2m/DefaultingList.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/framework/org.eclipse.papyrus.tests.framework/src/org/eclipse/papyrus/tests/framework/m2m/DefaultingList.xtend')
-rw-r--r--tests/framework/org.eclipse.papyrus.tests.framework/src/org/eclipse/papyrus/tests/framework/m2m/DefaultingList.xtend57
1 files changed, 0 insertions, 57 deletions
diff --git a/tests/framework/org.eclipse.papyrus.tests.framework/src/org/eclipse/papyrus/tests/framework/m2m/DefaultingList.xtend b/tests/framework/org.eclipse.papyrus.tests.framework/src/org/eclipse/papyrus/tests/framework/m2m/DefaultingList.xtend
deleted file mode 100644
index b60e4325268..00000000000
--- a/tests/framework/org.eclipse.papyrus.tests.framework/src/org/eclipse/papyrus/tests/framework/m2m/DefaultingList.xtend
+++ /dev/null
@@ -1,57 +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.tests.framework.m2m
-
-import org.eclipse.emf.common.util.BasicEList
-import org.eclipse.xtend.lib.annotations.Accessors
-
-/**
- * A custom list implementation that has an initial unset state that can be queried to determine whether
- * the list was ever modified.
- */
-class DefaultingList<E> extends BasicEList<E> {
- @Accessors(PUBLIC_GETTER) boolean set
-
- static def <E> DefaultingList<E> newDefaultingList() {
- new DefaultingList<E>
- }
-
- static def dispatch isDefault(Iterable<?> collection) {
- false
- }
-
- static def dispatch isDefault(DefaultingList<?> collection) {
- !collection.isSet
- }
-
- /**
- * Iterable alternation: the result is {@code collection} if it is not {@link #isDefault()}, otherwise the value of
- * the {@code defaultBlock}.
- */
- def static <E> Iterable<? extends E> operator_or(Iterable<? extends E> collection, ()=>Iterable<? extends E> defaultBlock) {
- if (collection.isDefault) defaultBlock.apply else collection
- }
-
- /**
- * Iterable alternation: the result is {@code collection} if it is not {@link #isDefault()}, otherwise the value of
- * the {@code defaultBlock}.
- */
- def static <E> Iterable<? extends E> operator_or(Iterable<? extends E> collection, Iterable<? extends E> defaultValue) {
- if (collection.isDefault) defaultValue else collection
- }
-
- override protected didChange() {
- set = true
- }
-}

Back to the top