4 package eu
.etaxonomy
.taxeditor
.navigation
.navigator
.contextmenu
;
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
;
13 import eu
.etaxonomy
.taxeditor
.test
.AbstractEditorTest
;
14 import eu
.etaxonomy
.taxeditor
.test
.ContextMenuHelper
;
21 public class ClassificationTest
extends AbstractEditorTest
{
23 private SWTBotView navigatorView
;
24 private SWTBotTree tree
;
30 navigatorView
= utils
.view("Taxon Navigator");
31 tree
= utils
.tree(navigatorView
.getWidget());
35 public void canDeleteClassification() throws Exception
{
37 ContextMenuHelper
.clickContextMenu(tree
, "Delete");
38 bot
.waitUntil(Conditions
.shellIsActive("Confirm Deletion"));
43 public void canCreateClassification() throws Exception
{
45 ContextMenuHelper
.clickContextMenu(tree
, "New", "Classification");
46 bot
.waitUntil(Conditions
.shellIsActive("New Entity"));
47 bot
.textWithLabel("Label").setText("Classification");