Merge branch 'develop' into remoting-4.0
[taxeditor.git] / eu.etaxonomy.taxeditor.test / src / test / java / eu / etaxonomy / taxeditor / navigation / navigator / contextmenu / ClassificationTest.java
1 /**
2 *
3 */
4 package eu.etaxonomy.taxeditor.navigation.navigator.contextmenu;
5
6 import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
7 import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
8 import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
9 import org.junit.Before;
10 import org.junit.Ignore;
11 import org.junit.Test;
12
13 import eu.etaxonomy.taxeditor.test.AbstractEditorTest;
14 import eu.etaxonomy.taxeditor.test.ContextMenuHelper;
15
16 /**
17 * @author n.hoffmann
18 *
19 */
20 @Ignore
21 public class ClassificationTest extends AbstractEditorTest {
22
23 private SWTBotView navigatorView;
24 private SWTBotTree tree;
25
26 @Override
27 @Before
28 public void setup() {
29 super.setup();
30 navigatorView = utils.view("Taxon Navigator");
31 tree = utils.tree(navigatorView.getWidget());
32 }
33
34 @Test
35 public void canDeleteClassification() throws Exception {
36 tree.select(0);
37 ContextMenuHelper.clickContextMenu(tree, "Delete");
38 bot.waitUntil(Conditions.shellIsActive("Confirm Deletion"));
39 utils.ok();
40 }
41
42 @Test
43 public void canCreateClassification() throws Exception {
44 tree.setFocus();
45 ContextMenuHelper.clickContextMenu(tree, "New", "Classification");
46 bot.waitUntil(Conditions.shellIsActive("New Entity"));
47 bot.textWithLabel("Label").setText("Classification");
48 utils.finish();
49 }
50 }