Merge branch 'develop' into remoting-4.0
[taxeditor.git] / eu.etaxonomy.taxeditor.test / src / test / java / eu / etaxonomy / taxeditor / application / menu / general / NewMenuTest.java
1 package eu.etaxonomy.taxeditor.application.menu.general;
2
3 import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
4 import org.junit.Ignore;
5 import org.junit.Test;
6
7 import eu.etaxonomy.taxeditor.test.AbstractEditorTest;
8
9 /**
10 * Open all "General -> New" menus
11 *
12 * @author n.hoffmann
13 *
14 */
15 @Ignore
16 public class NewMenuTest extends AbstractEditorTest {
17
18 @Test
19 public void canOpenNewWizardForTaxon(){
20 openNewWizardFor("Taxon");
21 utils.cancel();
22 }
23
24
25 @Test
26 public void canOpenNewWizardForReference(){
27 openNewWizardFor("Reference");
28 utils.cancel();
29 }
30
31
32 @Test
33 public void canOpenNewWizardForName(){
34 openNewWizardFor("Name");
35 utils.cancel();
36 }
37
38
39 @Test
40 public void canOpenNewWizardForTeam(){
41 openNewWizardFor("Team");
42 utils.cancel();
43 }
44
45
46 @Test
47 public void canOpenNewWizardForPerson(){
48 openNewWizardFor("Person");
49 utils.cancel();
50 }
51
52 @Test
53 public void canOpenNewWizardForSpecimen(){
54 openNewWizardFor("Specimen");
55 utils.cancel();
56 }
57
58
59 @Test
60 public void canOpenNewWizardForClassification(){
61 openNewWizardFor("Classification");
62 utils.cancel();
63 }
64
65 private void openNewWizardFor(String entity) {
66 bot.menu("General").menu("New").menu(entity).click();
67 bot.waitUntil(Conditions.shellIsActive("New Entity"));
68 }
69 }