use of org.eclipse.reddeer.core.matcher.TreeItemRegexMatcher in project jbosstools-hibernate by jbosstools.
the class ConnectionProfileFactory method deleteConnectionProfile.
/**
* Deletes connection profile
* @param profileName profile name to delete
*/
@SuppressWarnings("unchecked")
public static void deleteConnectionProfile(String profileName) {
DataSourceExplorerView explorer = new DataSourceExplorerView();
explorer.open();
new DefaultTreeItem(new TreeItemRegexMatcher("Database Connections"), new TreeItemRegexMatcher(profileName + ".*")).select();
new ContextMenuItem("Delete").select();
Shell delete = new DefaultShell("Delete confirmation");
new YesButton(delete).click();
new WaitWhile(new ShellIsAvailable(delete));
}
use of org.eclipse.reddeer.core.matcher.TreeItemRegexMatcher in project jbosstools-openshift by jbosstools.
the class ImportApplicationWizardTest method testImportOpenShift3AppViaServerAdapterSettings.
@SuppressWarnings("unchecked")
@Test(expected = OpenshiftTestInFailureException.class)
public void testImportOpenShift3AppViaServerAdapterSettings() {
ServerSettingsWizard serverWizard = OpenShiftUtils.openServerSettingsWizardFromOpenshiftView(service);
ImportApplicationWizard importWizard = new ServerSettingsWizardPage().importProject();
new DefaultTree(importWizard).getItem(new TreeItemRegexMatcher(OpenShiftResources.NODEJS_SERVICE + ".*")).select();
importWizard.next();
importWizard.finish();
new DefaultShell(OpenShiftLabel.Shell.SERVER_ADAPTER_SETTINGS);
assertProjectNameFilled();
serverWizard.cancel();
assertProjectExistsInProjectView(OpenShiftResources.NODEJS_GIT_NAME);
}
Aggregations