Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCamille Letavernier2016-05-26 11:28:50 +0000
committerGerrit Code Review @ Eclipse.org2016-05-26 12:06:55 +0000
commit99ede97fe480c2395d8f9e5fa52f9fe5a347a7af (patch)
tree3a1e62a0767bb56c5e019fedbb83c60494c5456c /tests
parente1ce318ec974fbbe26c866cf0607442459b20420 (diff)
downloadorg.eclipse.papyrus-99ede97fe480c2395d8f9e5fa52f9fe5a347a7af.tar.gz
org.eclipse.papyrus-99ede97fe480c2395d8f9e5fa52f9fe5a347a7af.tar.xz
org.eclipse.papyrus-99ede97fe480c2395d8f9e5fa52f9fe5a347a7af.zip
Bug 494625: [Table] Random failures in Copy-Paste tests in the Tables
https://bugs.eclipse.org/bugs/show_bug.cgi?id=494625 Change-Id: Iec5d5c50086d686425f6dabe457dbcfa8ff98a74 Signed-off-by: Camille Letavernier <camille.letavernier@cea.fr>
Diffstat (limited to 'tests')
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/UMLTreeNatTableClassTests.launch2
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/paste/tests/AbstractPasteWithCategoriesTests.java19
2 files changed, 12 insertions, 9 deletions
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/UMLTreeNatTableClassTests.launch b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/UMLTreeNatTableClassTests.launch
index c1f84990cae..4a5f2f5a69b 100644
--- a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/UMLTreeNatTableClassTests.launch
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/UMLTreeNatTableClassTests.launch
@@ -28,7 +28,7 @@
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
-<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.eclipse.papyrus.uml.nattable.clazz.config.tests.tests.AllTests"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.eclipse.papyrus.uml.nattable.clazz.config.tests"/>
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/paste/tests/AbstractPasteWithCategoriesTests.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/paste/tests/AbstractPasteWithCategoriesTests.java
index f1a5cd46b72..6ce9c34040b 100644
--- a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/paste/tests/AbstractPasteWithCategoriesTests.java
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.clazz.config.tests/src/org/eclipse/papyrus/uml/nattable/clazz/config/tests/paste/tests/AbstractPasteWithCategoriesTests.java
@@ -39,7 +39,6 @@ import org.eclipse.papyrus.infra.emf.gmf.command.CheckedOperationHistory;
import org.eclipse.papyrus.infra.emf.gmf.command.GMFtoEMFCommandWrapper;
import org.eclipse.papyrus.infra.gmfdiag.common.model.NotationUtils;
import org.eclipse.papyrus.infra.nattable.common.editor.NatTableEditor;
-import org.eclipse.papyrus.infra.nattable.handler.PasteInTableHandler;
import org.eclipse.papyrus.infra.nattable.manager.table.AbstractNattableWidgetManager;
import org.eclipse.papyrus.infra.nattable.manager.table.INattableModelManager;
import org.eclipse.papyrus.infra.nattable.manager.table.ITreeNattableModelManager;
@@ -52,6 +51,7 @@ import org.eclipse.papyrus.infra.nattable.parsers.CSVParser;
import org.eclipse.papyrus.infra.nattable.parsers.CellIterator;
import org.eclipse.papyrus.infra.nattable.parsers.RowIterator;
import org.eclipse.papyrus.infra.nattable.tree.CollapseAndExpandActionsEnum;
+import org.eclipse.papyrus.infra.nattable.utils.AbstractPasteInsertInTableHandler;
import org.eclipse.papyrus.infra.nattable.utils.AxisUtils;
import org.eclipse.papyrus.infra.nattable.utils.CSVPasteHelper;
import org.eclipse.papyrus.infra.nattable.utils.FillingConfigurationUtils;
@@ -60,6 +60,7 @@ import org.eclipse.papyrus.infra.nattable.utils.StyleUtils;
import org.eclipse.papyrus.infra.nattable.utils.TableClipboardUtils;
import org.eclipse.papyrus.infra.tools.util.FileUtils;
import org.eclipse.papyrus.infra.ui.util.EclipseCommandUtils;
+import org.eclipse.papyrus.junit.framework.classification.InvalidTest;
import org.eclipse.papyrus.junit.utils.EditorUtils;
import org.eclipse.papyrus.junit.utils.GenericUtils;
import org.eclipse.papyrus.uml.nattable.clazz.config.tests.Activator;
@@ -102,6 +103,7 @@ import ca.odell.glazedlists.TreeList.Node;
* </ul>
*
*/
+@InvalidTest("Bug 494265")
public abstract class AbstractPasteWithCategoriesTests extends AbstractOpenTableTest {
public static final String PASTE_FOLDER_PATH = "/resources/paste_tests/"; //$NON-NLS-1$
@@ -258,8 +260,8 @@ public abstract class AbstractPasteWithCategoriesTests extends AbstractOpenTable
final Map<Object, Object> parameters = new HashMap<Object, Object>();
- parameters.put(PasteInTableHandler.OPEN_DIALOG_ON_FAIL_BOOLEAN_PARAMETER, Boolean.FALSE);
- parameters.put(PasteInTableHandler.OPEN__PROGRESS_MONITOR_DIALOG, Boolean.FALSE);
+ parameters.put(AbstractPasteInsertInTableHandler.OPEN_DIALOG_ON_FAIL_BOOLEAN_PARAMETER, Boolean.FALSE);
+ parameters.put(AbstractPasteInsertInTableHandler.OPEN__PROGRESS_MONITOR_DIALOG, Boolean.FALSE);
final ExecutionEvent event = new ExecutionEvent(cmd, parameters, null, null);
flushDisplayEvents();
final Object res = cmd.executeWithChecks(event);
@@ -315,7 +317,7 @@ public abstract class AbstractPasteWithCategoriesTests extends AbstractOpenTable
/**
* This allows to check the undo and the redo.
- *
+ *
* @param manager
* the nattable model manager.
* @throws Exception
@@ -324,12 +326,12 @@ public abstract class AbstractPasteWithCategoriesTests extends AbstractOpenTable
protected void checkUndo_Redo(final INattableModelManager manager) throws Exception {
((ITreeNattableModelManager) manager).doCollapseExpandAction(CollapseAndExpandActionsEnum.COLLAPSE_ALL, null);
-
+
// Execute the undo and check the table content
final EditingDomainUndoContext undoContext = new EditingDomainUndoContext(getTransactionalEditingDomain());
getTransactionalEditingDomain().getCommandStack().undo();
CheckedOperationHistory.getInstance().undo(undoContext, null, null);
-
+
flushDisplayEvents();
final List<?> rowElements = manager.getRowElementsList();
@@ -421,8 +423,9 @@ public abstract class AbstractPasteWithCategoriesTests extends AbstractOpenTable
/**
* This allows to check the returned status of the paste action.
- *
- * @param status The status got.
+ *
+ * @param status
+ * The status got.
*/
protected void validateReturnedStatus(final IStatus status) {
String className = getClass().getSimpleName();

Back to the top