tmf: Add waitUntil / condition to tmf.ui.tests
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.remote.ui.swtbot.tests / src / org / eclipse / tracecompass / tmf / remote / ui / swtbot / tests / fetch / FetchRemoteTracesTest.java
index 7e6654bf0dd4a3d8bb296cdfaf6baf5ddf7a423e..6b66637ffa88ebaa31bc4115454b5b5ad4881452 100644 (file)
@@ -49,6 +49,7 @@ import org.eclipse.tracecompass.tmf.ui.project.model.TmfProjectRegistry;
 import org.eclipse.tracecompass.tmf.ui.project.model.TmfTraceElement;
 import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.ConditionHelpers;
 import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.SWTBotUtils;
+import org.eclipse.tracecompass.tmf.ui.tests.shared.WaitUtils;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -115,7 +116,7 @@ public class FetchRemoteTracesTest {
 
         SWTBotUtils.switchToTracingPerspective();
         /* finish waiting for eclipse to load */
-        SWTBotUtils.waitForJobs();
+        WaitUtils.waitForJobs();
     }
 
     private static class TraceCountCondition extends DefaultCondition {
@@ -329,7 +330,7 @@ public class FetchRemoteTracesTest {
 
     private static void testImport(Runnable selectionFunctor, Runnable verifyTracesFunctor) {
         SWTBotUtils.createProject(PROJECT_NAME);
-        SWTBotUtils.waitForJobs();
+        WaitUtils.waitForJobs();
         SWTBotView projectExplorerBot = fBot.viewByTitle(PROJECT_EXPLORER);
         assertNotNull("Cannot find " + PROJECT_EXPLORER, projectExplorerBot);
         projectExplorerBot.show();
@@ -367,7 +368,7 @@ public class FetchRemoteTracesTest {
         fBot.waitUntil(Conditions.widgetIsEnabled(button));
         button.click();
         fBot.waitUntil(Conditions.shellCloses(shell));
-        SWTBotUtils.waitForJobs();
+        WaitUtils.waitForJobs();
 
         verifyTracesFunctor.run();
         fBot.closeAllEditors();
This page took 0.024237 seconds and 5 git commands to generate.