use of org.eclipse.reddeer.eclipse.wst.server.ui.cnf.ServersView2 in project jbosstools-openshift by jbosstools.
the class CDKServerAdapterAbstractTest method stopRunningServerAdapters.
/**
* static method for server adapters stopping in after class method
*/
public static void stopRunningServerAdapters() {
log.info("Cleaning up resources, stopping server adapter");
ServersView2 view = new ServersView2();
if (!view.isOpen()) {
view.open();
}
for (Server server : view.getServers()) {
log.info("Checking server " + server.getLabel().getName() + " state: " + server.getLabel().getState());
if (server.getLabel().getState().equals(ServerState.STARTED)) {
log.info("Stopping server");
server.stop();
}
}
}
use of org.eclipse.reddeer.eclipse.wst.server.ui.cnf.ServersView2 in project jbosstools-openshift by jbosstools.
the class CDKUtils method getAllServers.
public static List<Server> getAllServers() {
log.info("Collecting all server adapters");
ServersView2 view = new ServersView2();
view.open();
return view.getServers();
}
use of org.eclipse.reddeer.eclipse.wst.server.ui.cnf.ServersView2 in project jbosstools-openshift by jbosstools.
the class ServerAdapterFromResourceTest method assertAdapterWorks.
private void assertAdapterWorks() {
String serverName = adapter.getLabel();
Server server = new ServersView2().getServer(serverName);
try {
new WaitUntil(new ServerHasState(server, ServerState.STARTED), TimePeriod.LONG);
} catch (WaitTimeoutExpiredException ex) {
throw new OpenshiftTestInFailureException("https://issues.jboss.org/browse/JBIDE-24241", ex);
}
}
Aggregations