@Override public void setUp() { super.setUp(); // Open Internal Web Browser // TODO: should be replaced with Internal Web Browses view once it's implemented new DefaultShell(); RegexMatchers m = new RegexMatchers("Window.*", "Show View.*", "Other...*"); Menu menu = new ShellMenu(m.getMatchers()); menu.select(); new DefaultShell("Show View"); new DefaultTreeItem("General", "Internal Web Browser").select(); new PushButton("OK").click(); }
@Override protected void setUp() { super.setUp(); NewJavaProjectWizardDialog dialog = new NewJavaProjectWizardDialog(); dialog.open(); NewJavaProjectWizardPage page1 = dialog.getFirstPage(); page1.setProjectName(ProjectItemTest.PROJECT_NAME); dialog.finish(); packageExplorer = new PackageExplorer(); projectItem = packageExplorer .getProject(ProjectItemTest.PROJECT_NAME) .getProjectItem(ProjectItemTest.PROJECT_ITEM_TEXT); }
@Override protected void tearDown() { packageExplorer.getProject(ProjectItemTest.PROJECT_NAME).delete(true); super.tearDown(); }