Reorganized the test classes
[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.Test;
5
6 import eu.etaxonomy.taxeditor.test.AbstractEditorTest;
7
8 /**
9 * Open all "General -> New" menus
10 *
11 * @author n.hoffmann
12 *
13 */
14 public class NewMenuTest extends AbstractEditorTest {
15
16 @Test
17 public void canOpenNewWizardForTaxon(){
18 openNewWizardFor("Taxon");
19 utils.cancel();
20 }
21
22
23 @Test
24 public void canOpenNewWizardForReference(){
25 openNewWizardFor("Reference");
26 utils.cancel();
27 }
28
29
30 @Test
31 public void canOpenNewWizardForName(){
32 openNewWizardFor("Name");
33 utils.cancel();
34 }
35
36
37 @Test
38 public void canOpenNewWizardForTeam(){
39 openNewWizardFor("Team");
40 utils.cancel();
41 }
42
43
44 @Test
45 public void canOpenNewWizardForPerson(){
46 openNewWizardFor("Person");
47 utils.cancel();
48 }
49
50 @Test
51 public void canOpenNewWizardForSpecimen(){
52 openNewWizardFor("Specimen");
53 utils.cancel();
54 }
55
56
57 @Test
58 public void canOpenNewWizardForClassification(){
59 openNewWizardFor("Classification");
60 utils.cancel();
61 }
62
63 private void openNewWizardFor(String entity) {
64 bot.menu("General").menu("New").menu(entity).click();
65 bot.waitUntil(Conditions.shellIsActive("New Entity"));
66 }
67 }