use of org.jboss.tools.openshift.reddeer.wizard.v3.DeleteResourcesWizard in project jbosstools-openshift by jbosstools.
the class InteligentDeleteResourceTest method checkDeletedResourceBoolean.
private boolean checkDeletedResourceBoolean(ResourceOpenShift resource) {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
OpenShiftProject openshiftProject = explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject(projectReq.getProjectName());
openshiftProject.refresh();
DeleteResourcesWizard deleteResourcesWizard = new DeleteResourcesWizard(connectionReq.getConnection());
deleteResourcesWizard.openWizardFromExplorer(projectReq.getProjectName());
List<TableItem> items = deleteResourcesWizard.getResourcesByType(resource);
deleteResourcesWizard.cancel();
return items.isEmpty();
}
use of org.jboss.tools.openshift.reddeer.wizard.v3.DeleteResourcesWizard in project jbosstools-openshift by jbosstools.
the class InteligentDeleteResourceTest method deleteResource.
private void deleteResource(ResourceOpenShift resource) {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
OpenShiftProject openshiftProject = explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject(projectReq.getProjectName());
openshiftProject.refresh();
DeleteResourcesWizard deleteResourcesWizard = new DeleteResourcesWizard(connectionReq.getConnection());
deleteResourcesWizard.openWizardFromExplorer(projectReq.getProjectName());
List<TableItem> items = deleteResourcesWizard.getResourcesByType(resource);
for (TableItem item : items) {
item.select();
}
deleteResourcesWizard.delete();
new WaitUntil(new JobIsRunning(), false);
}
use of org.jboss.tools.openshift.reddeer.wizard.v3.DeleteResourcesWizard in project jbosstools-openshift by jbosstools.
the class InteligentDeleteResourceTest method testASearchIsWorking.
@Test
public void testASearchIsWorking() {
OpenShiftExplorerView explorer = new OpenShiftExplorerView();
OpenShiftProject openshiftProject = explorer.getOpenShift3Connection(connectionReq.getConnection()).getProject(projectReq.getProjectName());
openshiftProject.refresh();
DeleteResourcesWizard deleteResourcesWizard = new DeleteResourcesWizard(connectionReq.getConnection());
deleteResourcesWizard.openWizardFromExplorer(projectReq.getProjectName());
int sizeBefore = deleteResourcesWizard.getAllResources().size();
deleteResourcesWizard.setFilter("eap-app");
assertNotEquals(sizeBefore, deleteResourcesWizard.getAllResources().size());
deleteResourcesWizard.setFilter("");
assertEquals(sizeBefore, deleteResourcesWizard.getAllResources().size());
deleteResourcesWizard.cancel();
}
Aggregations