Пример #1
0
 @Before
 public void setUp() {
   NewJavaProjectWizardDialog dialog = new NewJavaProjectWizardDialog();
   dialog.open();
   NewJavaProjectWizardPage page1 = new NewJavaProjectWizardPage();
   page1.setProjectName(PropertiesViewTest.TEST_PROJECT_NAME);
   dialog.finish();
   new PackageExplorer().getProject(PropertiesViewTest.TEST_PROJECT_NAME).getTreeItem().select();
 }
Пример #2
0
 @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);
 }