4 package eu
.etaxonomy
.taxeditor
.test
;
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
;
16 public class ClassificationTest
extends AbstractEditorTest
{
18 private SWTBotView navigatorView
;
19 private SWTBotTree tree
;
24 navigatorView
= view("Taxon Navigator");
25 tree
= tree(navigatorView
.getWidget());
29 public void canDeleteClassification() throws Exception
{
31 ContextMenuHelper
.clickContextMenu(tree
, "Delete");
32 bot
.waitUntil(Conditions
.shellIsActive("Confirm Deletion"));
33 bot
.button("OK").click();
37 public void canCreateClassification() throws Exception
{
39 ContextMenuHelper
.clickContextMenu(tree
, "New", "Classification");
40 bot
.waitUntil(Conditions
.shellIsActive("New Entity"));
41 bot
.textWithLabel("Label").setText("Classification");
42 bot
.button("Finish").click();