Example #1
0
  @Test
  public void contextMenuItemTextTest() {
    // make sure shell is focused
    new DefaultShell();

    ProjectExplorer pe = new ProjectExplorer();
    pe.open();

    Menu menu = new ContextMenu("New", "Project...");
    assertTrue("Menuitem text not expected to be empty", !menu.getText().equals(""));
  }
Example #2
0
 @Test
 public void shellMenuItemTextTest() {
   new DefaultShell();
   Menu menu = new ShellMenu("Window", "Preferences");
   assertTrue("Menuitem text not expected to be empty", !menu.getText().equals(""));
 }