@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("")); }
@Test public void shellMenuItemTextTest() { new DefaultShell(); Menu menu = new ShellMenu("Window", "Preferences"); assertTrue("Menuitem text not expected to be empty", !menu.getText().equals("")); }