diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.tests')
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); + } +} |