ctf: Depend on the tracecompass-test-traces project
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.tmf.ctf.core.tests / src / org / eclipse / tracecompass / tmf / ctf / core / tests / temp / statistics / TmfStateStatisticsTest.java
index 49625b53b85a927066ad80106ab697fe4d32ac95..b30840358445539dde5a5953b98029b7101cfdf8 100644 (file)
@@ -15,7 +15,6 @@ package org.eclipse.tracecompass.tmf.ctf.core.tests.temp.statistics;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
-import static org.junit.Assume.assumeTrue;
 
 import org.eclipse.tracecompass.statesystem.core.ITmfStateSystem;
 import org.eclipse.tracecompass.tmf.core.exceptions.TmfAnalysisException;
@@ -23,9 +22,9 @@ import org.eclipse.tracecompass.tmf.core.statistics.TmfStateStatistics;
 import org.eclipse.tracecompass.tmf.core.statistics.TmfStatisticsEventTypesModule;
 import org.eclipse.tracecompass.tmf.core.statistics.TmfStatisticsTotalsModule;
 import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
+import org.eclipse.tracecompass.tmf.ctf.core.tests.shared.CtfTmfTestTraceUtils;
 import org.junit.After;
 import org.junit.Before;
-import org.junit.BeforeClass;
 
 /**
  * Unit tests for the {@link TmfStateStatistics}
@@ -39,20 +38,12 @@ public class TmfStateStatisticsTest extends TmfStatisticsTest {
     private TmfStatisticsTotalsModule fTotalsMod;
     private TmfStatisticsEventTypesModule fEventTypesMod;
 
-    /**
-     * Class setup
-     */
-    @BeforeClass
-    public static void setUpClass() {
-        assumeTrue(testTrace.exists());
-    }
-
     /**
      * Test setup
      */
     @Before
     public void setUp() {
-        ITmfTrace trace = testTrace.getTrace();
+        ITmfTrace trace = CtfTmfTestTraceUtils.getTrace(testTrace);
         fTrace = trace;
 
         /* Prepare the two analysis-backed state systems */
This page took 0.039194 seconds and 5 git commands to generate.