Search in sources :

Example 6 with AmountOfResourcesExists

use of org.jboss.tools.openshift.reddeer.condition.AmountOfResourcesExists in project jbosstools-openshift by jbosstools.

the class DeleteResourceTest method waitForApplication.

@BeforeClass
public static void waitForApplication() {
    new WaitUntil(new OpenShiftResourceExists(Resource.BUILD, "eap-app-1", ResourceState.COMPLETE, projectReq.getProjectName(), connectionReq.getConnection()), TimePeriod.getCustom(600), true);
    new WaitUntil(new AmountOfResourcesExists(Resource.POD, 2, projectReq.getProjectName(), connectionReq.getConnection()), TimePeriod.VERY_LONG, true);
}
Also used : AmountOfResourcesExists(org.jboss.tools.openshift.reddeer.condition.AmountOfResourcesExists) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) OpenShiftResourceExists(org.jboss.tools.openshift.reddeer.condition.OpenShiftResourceExists) BeforeClass(org.junit.BeforeClass)

Aggregations

WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)6 AmountOfResourcesExists (org.jboss.tools.openshift.reddeer.condition.AmountOfResourcesExists)6 OpenShiftResourceExists (org.jboss.tools.openshift.reddeer.condition.OpenShiftResourceExists)6 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)3 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)3 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)3 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)3 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)3 BeforeClass (org.junit.BeforeClass)3 Test (org.junit.Test)3 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)2 Matcher (org.hamcrest.Matcher)2 OpenShiftResource (org.jboss.tools.openshift.reddeer.view.resources.OpenShiftResource)2 BrowserEditor (org.eclipse.reddeer.eclipse.ui.browser.BrowserEditor)1 BrowserContainsText (org.jboss.tools.openshift.reddeer.condition.BrowserContainsText)1