use of org.eclipse.reddeer.swt.impl.text.DefaultText in project jbosstools-hibernate by jbosstools.
the class EditConfigurationMainPage method setProject.
/**
* Sets project for Hibernate Console Configuration
* @param project given project name
*/
public void setProject(String project) {
DefaultGroup g = new DefaultGroup("Project:");
new DefaultText(g, 0).setText(project);
}
use of org.eclipse.reddeer.swt.impl.text.DefaultText in project jbosstools-openshift by jbosstools.
the class NewApplicationWizardHandlingTest method testFilteringServerTemplates.
@Test
public void testFilteringServerTemplates() {
DefaultText searchBar = new DefaultText(1);
searchBar.setText("eap70-basic-s2i");
assertTrue("There should be precisely one tree item in a tree.", new DefaultTree().getItems().size() == 1);
String templateLabel = new DefaultTree().getItems().get(0).getText();
assertTrue("There should be item representing basic EAP template in a tree but it is not there.", templateLabel.equals(OpenShiftLabel.Others.EAP_TEMPLATE) || templateLabel.equals(OpenShiftLabel.Others.EAP_TEMPLATE_OLD));
searchBar.setText("");
assertTrue("There should be more templates if search bar does not contain any search query", new DefaultTree().getItems().size() > 2);
}
use of org.eclipse.reddeer.swt.impl.text.DefaultText in project jbosstools-openshift by jbosstools.
the class ProjectNameValidationTest method testForbiddenCharactersInProjectName.
@Test
public void testForbiddenCharactersInProjectName() {
new LabeledText(OpenShiftLabel.TextLabels.PROJECT_NAME).setText("AAA");
new DefaultText(PROJECT_NAME_FORMAT_ERROR);
}
use of org.eclipse.reddeer.swt.impl.text.DefaultText in project jbosstools-openshift by jbosstools.
the class ProjectNameValidationTest method testShortProjectName.
@Test
public void testShortProjectName() {
new LabeledText(OpenShiftLabel.TextLabels.PROJECT_NAME).setText("s");
new DefaultText(PROJECT_NAME_SHORT_ERROR);
}
use of org.eclipse.reddeer.swt.impl.text.DefaultText in project jbosstools-openshift by jbosstools.
the class SecureStorage method provideSecureStoragePassword.
private static boolean provideSecureStoragePassword(String password) {
try {
new DefaultShell(OpenShiftLabel.Shell.SECURE_STORAGE_PASSWORD);
} catch (CoreLayerException ex) {
LOGGER.info(String.format("Shell with label \"%s\" was not found. Trying \"%s\"", OpenShiftLabel.Shell.SECURE_STORAGE_PASSWORD, OpenShiftLabel.Shell.SECURE_STORAGE));
new DefaultShell(OpenShiftLabel.Shell.SECURE_STORAGE);
}
new DefaultText(0).setText(password);
boolean firstStorage = true;
try {
new DefaultText(1).setText(password);
} catch (RedDeerException ex) {
firstStorage = false;
}
new WaitUntil(new ControlIsEnabled(new OkButton()));
new OkButton().click();
return firstStorage;
}
Aggregations