use of org.jboss.tools.openshift.reddeer.condition.core.ProjectExists in project jbosstools-openshift by jbosstools.
the class CleanOpenShiftConnectionRequirement method fulfill.
@Override
public void fulfill() {
Connection connection = ConnectionUtils.getConnectionOrDefault(cleanConnection.connectionURL());
assertNotNull("There is no connection with URL " + cleanConnection.connectionURL(), connection);
List<IResource> projects = connection.getResources(ResourceKind.PROJECT);
for (IResource project : projects) {
String projectName = project.getName();
connection.deleteResource(project);
new WaitWhile(new ProjectExists(projectName, connection), TimePeriod.LONG);
}
connection.refresh();
}
Aggregations