tmf: Re-enable the unit tests depending on CTF traces
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / statistics / TmfEventsStatisticsTest.java
index fc01970a710bc153cb9ba7a3b620ec5c7d67a594..0aebb5e51af5a9705026bda625438e5e0daba7da 100644 (file)
 
 package org.eclipse.linuxtools.tmf.core.tests.statistics;
 
-import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
+import static org.junit.Assume.assumeTrue;
+
 import org.eclipse.linuxtools.tmf.core.statistics.TmfEventsStatistics;
+import org.eclipse.linuxtools.tmf.core.tests.shared.CtfTmfTestTraces;
 import org.junit.BeforeClass;
 
 /**
@@ -28,10 +30,7 @@ public class TmfEventsStatisticsTest extends TmfStatisticsTest {
      */
     @BeforeClass
     public static void setUpClass() {
-        try {
-            backend = new TmfEventsStatistics(TestParams.createTrace());
-        } catch (TmfTraceException e) {
-            e.printStackTrace();
-        }
+        assumeTrue(CtfTmfTestTraces.tracesExist());
+        backend = new TmfEventsStatistics(CtfTmfTestTraces.getTestTrace(TRACE_INDEX));
     }
 }
This page took 0.035943 seconds and 5 git commands to generate.