use of org.eclipse.reddeer.eclipse.condition.ProjectExists in project jbosstools-openshift by jbosstools.
the class CreateApplicationOnBuilderImageTest method setUp.
@Before
public void setUp() {
OpenShift3NativeProjectUtils.getOrCreateProject(DatastoreOS3.PROJECT1, DatastoreOS3.PROJECT1_DISPLAYED_NAME, StringUtils.EMPTY, connectionReq.getConnection());
TestUtils.cleanupGitFolder(gitFolder);
if (new ProjectExists(projectName).test()) {
new ProjectExplorer().getProject(projectName).delete(true);
}
}
use of org.eclipse.reddeer.eclipse.condition.ProjectExists in project jbosstools-openshift by jbosstools.
the class CreateApplicationFromTemplateTest method importApplicationAndVerify.
public static void importApplicationAndVerify(String projectName) {
new WaitUntil(new ShellIsAvailable(OpenShiftLabel.Shell.IMPORT_APPLICATION));
new DefaultShell(OpenShiftLabel.Shell.IMPORT_APPLICATION);
try {
new CheckBox(new WithTextMatcher(new StringStartsWith("Do not clone"))).toggle(true);
} catch (CoreLayerException ex) {
// git directory is not in use
} catch (WaitTimeoutExpiredException ex) {
// swallow, checkbox is disabled
}
new FinishButton().click();
ProjectExplorer projectExplorer = new ProjectExplorer();
projectExplorer.open();
OpenShiftUtils.handleCheatSheetCreateServerAdapter();
new WaitUntil(new ProjectExists(projectName, new ProjectExplorer()), TimePeriod.LONG, false);
assertTrue("Project Explorer should contain imported project " + projectName, projectExplorer.containsProject(projectName));
}
use of org.eclipse.reddeer.eclipse.condition.ProjectExists in project jbosstools-openshift by jbosstools.
the class CreateApplicationFromTemplateTest method importTestsProject.
@BeforeClass
public static void importTestsProject() {
new ExternalProjectImportWizardDialog().open();
new DefaultCombo().setText(TESTS_PROJECT_LOCATION);
new PushButton("Refresh").click();
new WaitUntil(new ControlIsEnabled(new FinishButton()), TimePeriod.LONG);
new FinishButton().click();
new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
new WaitUntil(new ProjectExists(TESTS_PROJECT), TimePeriod.LONG);
}
Aggregations