use of org.eclipse.reddeer.swt.api.TreeItem in project jbosstools-openshift by jbosstools.
the class ResourcesTest method testResourcesExistence.
@Test
public void testResourcesExistence() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
explorer.open();
OpenShiftProject project = explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject(DatastoreOS3.TEST_PROJECT);
project.expand();
TreeItem projectItem = project.getTreeItem();
verifyResourceExistence(projectItem, Resource.BUILD_CONFIG);
verifyResourceExistence(projectItem, Resource.BUILD);
verifyResourceExistence(projectItem, Resource.DEPLOYMENT_CONFIG);
verifyResourceExistence(projectItem, Resource.IMAGE_STREAM);
verifyResourceExistence(projectItem, Resource.POD);
verifyResourceExistence(projectItem, Resource.ROUTE);
verifyResourceExistence(projectItem, Resource.SERVICE);
}
use of org.eclipse.reddeer.swt.api.TreeItem in project jbosstools-hibernate by jbosstools.
the class HibernateRedDeerTest method deleteHibernateConfigurations.
private static void deleteHibernateConfigurations() {
KnownConfigurationsView v = new KnownConfigurationsView();
v.open();
while (v.getConsoleConfigurations() != null && !v.getConsoleConfigurations().isEmpty()) {
TreeItem i = v.getConsoleConfigurations().get(0);
i.select();
ContextMenuItem closeConfig = new ContextMenuItem("Close Configuration");
if (closeConfig.isEnabled()) {
closeConfig.select();
new WaitWhile(new JobIsRunning());
}
v.deleteConsoleConfiguration(i.getText());
}
}
Aggregations