1
|
/**
|
2
|
*
|
3
|
*/
|
4
|
package eu.etaxonomy.taxeditor.ui.selection;
|
5
|
|
6
|
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
|
7
|
import org.junit.Test;
|
8
|
|
9
|
/**
|
10
|
* This test will only test the selection element itself. The test may have to start other
|
11
|
* dialogs open windows before to get at the selection element. Any errors on the way
|
12
|
* should be handled by different tests.
|
13
|
*
|
14
|
* @author n.hoffmann
|
15
|
*
|
16
|
*/
|
17
|
public class TaxonSelectionElementTest extends AbstractSelectionElementTest {
|
18
|
@Override
|
19
|
public void setup() {
|
20
|
super.setup();
|
21
|
bot.menu("General").menu("New").menu("Taxon").click();
|
22
|
bot.waitUntil(Conditions.shellIsActive("New Entity"));
|
23
|
}
|
24
|
|
25
|
@Test
|
26
|
public void canSelectTaxon() {
|
27
|
utils.openFilteredSelection(2, "Choose a taxon");
|
28
|
utils.cancel();
|
29
|
}
|
30
|
}
|