Rename xxx.lttng to xxx.lttng.core
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.tests / src / org / eclipse / linuxtools / lttng / tests / trace / LTTngExperimentTest.java
index 2de5d6b7f1c92d0e8068db7daa3326bb2e97d086..fe41685c659e64f8b5a63eb942535284638f237e 100644 (file)
@@ -21,12 +21,12 @@ import junit.framework.TestCase;
 
 import org.eclipse.core.runtime.FileLocator;
 import org.eclipse.core.runtime.Path;
+import org.eclipse.linuxtools.lttng.event.LttngEvent;
 import org.eclipse.linuxtools.lttng.tests.LTTngCoreTestPlugin;
-import org.eclipse.linuxtools.lttng.trace.LTTngExperiment;
 import org.eclipse.linuxtools.lttng.trace.LTTngTrace;
-import org.eclipse.linuxtools.tmf.event.TmfEvent;
 import org.eclipse.linuxtools.tmf.event.TmfTimeRange;
 import org.eclipse.linuxtools.tmf.event.TmfTimestamp;
+import org.eclipse.linuxtools.tmf.experiment.TmfExperiment;
 import org.eclipse.linuxtools.tmf.trace.ITmfTrace;
 
 /**
@@ -34,6 +34,7 @@ import org.eclipse.linuxtools.tmf.trace.ITmfTrace;
  * <p>
  * TODO: Implement me. Please.
  */
+@SuppressWarnings("nls")
 public class LTTngExperimentTest extends TestCase {
 
     private static final String DIRECTORY   = "traceset";
@@ -42,23 +43,24 @@ public class LTTngExperimentTest extends TestCase {
     private static int          NB_EVENTS   = 15316;
 
     // Note: Start/end times are for the LTTng *trace*, not the actual events
-    private static final TmfTimestamp  fStartTime = new TmfTimestamp(13589692331524L, (byte) -9);
+    private static final TmfTimestamp  fStartTime = new TmfTimestamp(13589759412128L, (byte) -9);
     private static final TmfTimestamp  fEndTime   = new TmfTimestamp(13589907059242L, (byte) -9);
 
-    private static ITmfTrace[] fTraces;
-    private static LTTngExperiment<TmfEvent> fExperiment;
+    private static ITmfTrace<LttngEvent>[] fTraces;
+    private static TmfExperiment<LttngEvent> fExperiment;
 
     // ------------------------------------------------------------------------
     // Housekeeping
     // ------------------------------------------------------------------------
 
-    private synchronized static ITmfTrace[] setupTrace(String path) {
+    @SuppressWarnings("unchecked")
+    private synchronized static ITmfTrace<LttngEvent>[] setupTrace(String path) {
        if (fTraces == null) {
                fTraces = new ITmfTrace[1];
                try {
                                URL location = FileLocator.find(LTTngCoreTestPlugin.getPlugin().getBundle(), new Path(path), null);
                                File testfile = new File(FileLocator.toFileURL(location).toURI());
-                               LTTngTrace trace = new LTTngTrace(testfile.getPath());
+                               LTTngTrace trace = new LTTngTrace(testfile.getPath(), false);
                        fTraces[0] = trace;
                } catch (URISyntaxException e) {
                        e.printStackTrace();
@@ -73,7 +75,7 @@ public class LTTngExperimentTest extends TestCase {
 
     private synchronized static void setupExperiment() {
        if (fExperiment == null) {
-               fExperiment = new LTTngExperiment<TmfEvent>(TmfEvent.class, EXPERIMENT, fTraces, TmfTimestamp.Zero, 1000, true);
+               fExperiment = new TmfExperiment<LttngEvent>(LttngEvent.class, EXPERIMENT, fTraces, TmfTimestamp.Zero, 1000, true);
        }
     }
 
This page took 0.025182 seconds and 5 git commands to generate.