tmf: Add waitUntil / condition to tmf.ui.tests
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.analysis.xml.ui.swtbot.tests / src / org / eclipse / tracecompass / tmf / analysis / xml / ui / swtbot / tests / latency / PatternLatencyViewTestBase.java
index 77abea0c0eaa1f1a4e741e19d9ba33d14e579027..2d851b5076e3a38b96ef6f43f844e554b833932e 100644 (file)
@@ -27,6 +27,7 @@ import org.eclipse.tracecompass.internal.tmf.analysis.xml.core.module.XmlUtils;
 import org.eclipse.tracecompass.testtraces.ctf.CtfTestTrace;
 import org.eclipse.tracecompass.tmf.analysis.xml.core.tests.common.TmfXmlTestFiles;
 import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.SWTBotUtils;
+import org.eclipse.tracecompass.tmf.ui.tests.shared.WaitUtils;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.BeforeClass;
@@ -69,7 +70,7 @@ public abstract class PatternLatencyViewTestBase {
         /* Switch perspectives */
         SWTBotUtils.switchToTracingPerspective();
         /* Finish waiting for eclipse to load */
-        SWTBotUtils.waitForJobs();
+        WaitUtils.waitForJobs();
 
         fBot = new SWTWorkbenchBot();
 
@@ -85,7 +86,7 @@ public abstract class PatternLatencyViewTestBase {
             String tracePath = FileLocator.toFileURL(CtfTestTrace.ARM_64_BIT_HEADER.getTraceURL()).getPath();
             SWTBotUtils.createProject(PROJECT_NAME);
             SWTBotUtils.openTrace(PROJECT_NAME, tracePath, TRACE_TYPE);
-            SWTBotUtils.waitForJobs();
+            WaitUtils.waitForJobs();
         } catch (IOException e) {
             fail("Failed to get the trace.");
         }
This page took 0.024694 seconds and 5 git commands to generate.