Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fluegge2011-05-20 13:51:40 +0000
committerMartin Fluegge2011-05-20 13:51:40 +0000
commit75464e206f9e91d298729eb28d21ea5197145e38 (patch)
tree02d2a028cdafcbc3ed33ec93aff854af320d4bcd /plugins/org.eclipse.emf.cdo.dawn.tests
parent97784b5f9f798206b5a9d1311d4aaa905497328f (diff)
downloadcdo-75464e206f9e91d298729eb28d21ea5197145e38.tar.gz
cdo-75464e206f9e91d298729eb28d21ea5197145e38.tar.xz
cdo-75464e206f9e91d298729eb28d21ea5197145e38.zip
[345858] CrossReferenceAdapter can cause problems when attached to the RootResource
https://bugs.eclipse.org/bugs/show_bug.cgi?id=345858
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.tests')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawnUISWTBot.java7
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/bugzillas/Bugzilla_345858_Test.java45
2 files changed, 48 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawnUISWTBot.java b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawnUISWTBot.java
index e04464f185..4ae0487056 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawnUISWTBot.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/AllTestsDawnUISWTBot.java
@@ -13,6 +13,7 @@ package org.eclipse.emf.cdo.dawn.tests;
import org.eclipse.emf.cdo.dawn.tests.bugzillas.Bugzilla_321024_Test;
import org.eclipse.emf.cdo.dawn.tests.bugzillas.Bugzilla_333187_Test;
import org.eclipse.emf.cdo.dawn.tests.bugzillas.Bugzilla_333291_Test;
+import org.eclipse.emf.cdo.dawn.tests.bugzillas.Bugzilla_345858_Test;
import org.eclipse.emf.cdo.dawn.tests.ui.DawnPreferencesTest;
import org.eclipse.emf.cdo.dawn.tests.ui.DawnProjectExplorerTest;
import org.eclipse.emf.cdo.dawn.tests.ui.emf.DawnEMFCreationWizardTest;
@@ -46,9 +47,7 @@ public class AllTestsDawnUISWTBot extends ConfigTestSuite
protected void initConfigSuites(TestSuite parent)
{
addScenario(parent, COMBINED, MEM, TCP, NATIVE);
- // addScenario(parent, COMBINED, MEM_BRANCHES, TCP, NATIVE);
- // addScenario(parent, COMBINED, MEM, TCP, LEGACY);
- // addScenario(parent, COMBINED, MEM_BRANCHES, TCP, LEGACY);
+ addScenario(parent, COMBINED, MEM_BRANCHES, TCP, NATIVE);
}
@Override
@@ -73,6 +72,6 @@ public class AllTestsDawnUISWTBot extends ConfigTestSuite
testClasses.add(Bugzilla_321024_Test.class);
testClasses.add(Bugzilla_333291_Test.class);
testClasses.add(Bugzilla_333187_Test.class);
- // testClasses.add(Bugzilla_345858_Test.class);
+ testClasses.add(Bugzilla_345858_Test.class);
}
}
diff --git a/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/bugzillas/Bugzilla_345858_Test.java b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/bugzillas/Bugzilla_345858_Test.java
new file mode 100644
index 0000000000..88c48d9e61
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.dawn.tests/src/org/eclipse/emf/cdo/dawn/tests/bugzillas/Bugzilla_345858_Test.java
@@ -0,0 +1,45 @@
+/**
+ * Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) 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:
+ * Martin Fluegge - initial API and implementation
+ */
+package org.eclipse.emf.cdo.dawn.tests.bugzillas;
+
+import org.eclipse.emf.cdo.dawn.tests.AbstractDawnGEFTest;
+import org.eclipse.emf.cdo.dawn.tests.ui.util.DawnAcoreTestUtil;
+import org.eclipse.emf.cdo.tests.config.impl.ConfigTest.CleanRepositoriesBefore;
+
+import org.eclipse.swtbot.eclipse.gef.finder.widgets.SWTBotGefEditor;
+import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * @author Martin Fluegge
+ */
+@CleanRepositoriesBefore
+@RunWith(SWTBotJunit4ClassRunner.class)
+public class Bugzilla_345858_Test extends AbstractDawnGEFTest
+{
+ @Test
+ public void testCreateNewDawnDiagramEmptySemanticResourceName() throws Exception
+ {
+ SWTBotGefEditor editor = DawnAcoreTestUtil.openNewAcoreGMFEditor("default0.acore_diagram", getBot());
+ editor.close();
+ sleep(1000);
+
+ editor = DawnAcoreTestUtil.openNewAcoreGMFEditor("default1.acore_diagram", getBot());
+ editor.close();
+ sleep(1000);
+
+ editor = DawnAcoreTestUtil.openNewAcoreGMFEditor("default2.acore_diagram", getBot());
+ editor.close();
+ sleep(1000);
+ }
+}

Back to the top