Source:
public void checkCreatingProject() throws Exception { newWorkspace.waitPageLoad(); newWorkspace.typeWorkspaceName(TEST_BLANK_WORKSPACE_NAME); newWorkspace.selectStack(Stack.DOT_NET); newWorkspace.waitStackSelected(Stack.DOT_NET); assertEquals(newWorkspace.getWorkspaceNameValue(), TEST_BLANK_WORKSPACE_NAME); newWorkspace.selectStack(Stack.JAVA); newWorkspace.waitStackSelected(Stack.JAVA); assertEquals(newWorkspace.getWorkspaceNameValue(), TEST_BLANK_WORKSPACE_NAME); newWorkspace.setMachineRAM("dev-machine", 3.0); newWorkspace.waitRamValue("dev-machine", 3.0); addOrImportForm.clickOnAddOrImportProjectButton(); addOrImportForm.waitAddOrImportFormOpened(); addOrImportForm.clickOnSampleCheckbox(SPRING_SAMPLE_NAME); addOrImportForm.waitSampleCheckboxEnabled(SPRING_SAMPLE_NAME); addOrImportForm.clickOnAddButton(); addOrImportForm.waitProjectTabAppearance(SPRING_SAMPLE_NAME); workspaceOverview.checkNameWorkspace(TEST_BLANK_WORKSPACE_NAME); seleniumWebDriver.navigate().back(); prepareJavaWorkspace(TEST_JAVA_WORKSPACE_NAME); newWorkspace.clickOnCreateButtonAndEditWorkspace(); workspaceOverview.checkNameWorkspace(TEST_JAVA_WORKSPACE_NAME); seleniumWebDriver.navigate().back(); prepareJavaWorkspace(TEST_JAVA_WORKSPACE_NAME_EDIT); newWorkspace.clickOnTopCreateButton(); testWorkspaceServiceClient.waitStatus( TEST_JAVA_WORKSPACE_NAME_EDIT, defaultTestUser.getName(), RUNNING); seleniumWebDriverHelper.switchToIdeFrameAndWaitAvailability(); projectExplorer.waitProjectExplorer(); projectExplorer.waitItem(SPRING_SAMPLE_NAME); projectExplorer.expandPathInProjectExplorerAndOpenFile( SPRING_SAMPLE_NAME + "/src/main/java/org.eclipse.che.examples", "GreetingController.java"); editor.waitActive(); editor.waitTextIntoEditor(EXPECTED_TEXT_IN_EDITOR); }

Target:
public void checkCreatingProject() throws Exception { newWorkspace.waitPageLoad(); newWorkspace.typeWorkspaceName(TEST_BLANK_WORKSPACE_NAME); newWorkspace.selectStack(Stack.DOT_NET); newWorkspace.waitStackSelected(Stack.DOT_NET); assertEquals(newWorkspace.getWorkspaceNameValue(), TEST_BLANK_WORKSPACE_NAME); newWorkspace.selectStack(Stack.JAVA); newWorkspace.waitStackSelected(Stack.JAVA); assertEquals(newWorkspace.getWorkspaceNameValue(), TEST_BLANK_WORKSPACE_NAME); newWorkspace.setMachineRAM("dev-machine", 3.0); newWorkspace.waitRamValue("dev-machine", 3.0); addOrImportForm.clickOnAddOrImportProjectButton(); addOrImportForm.waitAddOrImportFormOpened(); addOrImportForm.clickOnSampleCheckbox(SPRING_SAMPLE_NAME); addOrImportForm.waitSampleCheckboxEnabled(SPRING_SAMPLE_NAME); addOrImportForm.clickOnAddButton(); addOrImportForm.waitProjectTabAppearance(SPRING_SAMPLE_NAME); newWorkspace.clickOnCreateButtonAndEditWorkspace(); workspaceOverview.checkNameWorkspace(TEST_BLANK_WORKSPACE_NAME); seleniumWebDriver.navigate().back(); prepareJavaWorkspace(TEST_JAVA_WORKSPACE_NAME); newWorkspace.clickOnCreateButtonAndEditWorkspace(); workspaceOverview.checkNameWorkspace(TEST_JAVA_WORKSPACE_NAME); seleniumWebDriver.navigate().back(); prepareJavaWorkspace(TEST_JAVA_WORKSPACE_NAME_EDIT); newWorkspace.clickOnTopCreateButton(); seleniumWebDriverHelper.switchToIdeFrameAndWaitAvailability(); testWorkspaceServiceClient.waitStatus( TEST_JAVA_WORKSPACE_NAME_EDIT, defaultTestUser.getName(), RUNNING); projectExplorer.waitProjectExplorer(); projectExplorer.waitItem(SPRING_SAMPLE_NAME); projectExplorer.expandPathInProjectExplorerAndOpenFile( SPRING_SAMPLE_NAME + "/src/main/java/org.eclipse.che.examples", "GreetingController.java"); editor.waitActive(); editor.waitTextIntoEditor(EXPECTED_TEXT_IN_EDITOR); }