예제 #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(""));
  }
예제 #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(""));
 }