Search in sources :

Example 6 with OpenshiftTestInFailureException

use of org.jboss.tools.openshift.ui.bot.test.common.OpenshiftTestInFailureException 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);
    }
}
Also used : OpenshiftTestInFailureException(org.jboss.tools.openshift.ui.bot.test.common.OpenshiftTestInFailureException) ServerHasState(org.eclipse.reddeer.eclipse.condition.ServerHasState) Server(org.eclipse.reddeer.eclipse.wst.server.ui.cnf.Server) ServersView2(org.eclipse.reddeer.eclipse.wst.server.ui.cnf.ServersView2) WaitTimeoutExpiredException(org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil)

Aggregations

OpenshiftTestInFailureException (org.jboss.tools.openshift.ui.bot.test.common.OpenshiftTestInFailureException)6 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)4 CoreLayerException (org.eclipse.reddeer.core.exception.CoreLayerException)3 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)3 Test (org.junit.Test)3 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)2 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)2 ControlIsEnabled (org.eclipse.reddeer.swt.condition.ControlIsEnabled)2 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)2 PushButton (org.eclipse.reddeer.swt.impl.button.PushButton)2 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)2 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)2 DefaultTree (org.eclipse.reddeer.swt.impl.tree.DefaultTree)2 Git (org.eclipse.jgit.api.Git)1 ServerHasState (org.eclipse.reddeer.eclipse.condition.ServerHasState)1 Server (org.eclipse.reddeer.eclipse.wst.server.ui.cnf.Server)1 ServersView2 (org.eclipse.reddeer.eclipse.wst.server.ui.cnf.ServersView2)1 TreeItem (org.eclipse.reddeer.swt.api.TreeItem)1 BackButton (org.eclipse.reddeer.swt.impl.button.BackButton)1 CancelButton (org.eclipse.reddeer.swt.impl.button.CancelButton)1