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
.Test
;
12 import eu
.etaxonomy
.taxeditor
.test
.AbstractEditorTest
;
13 import eu
.etaxonomy
.taxeditor
.test
.ContextMenuHelper
;
19 public class ClassificationTest
extends AbstractEditorTest
{
21 private SWTBotView navigatorView
;
22 private SWTBotTree tree
;
27 navigatorView
= utils
.view("Taxon Navigator");
28 tree
= utils
.tree(navigatorView
.getWidget());
32 public void canDeleteClassification() throws Exception
{
34 ContextMenuHelper
.clickContextMenu(tree
, "Delete");
35 bot
.waitUntil(Conditions
.shellIsActive("Confirm Deletion"));
40 public void canCreateClassification() throws Exception
{
42 ContextMenuHelper
.clickContextMenu(tree
, "New", "Classification");
43 bot
.waitUntil(Conditions
.shellIsActive("New Entity"));
44 bot
.textWithLabel("Label").setText("Classification");