Implement the new TMF Event Model
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui.tests / src / org / eclipse / linuxtools / tmf / ui / tests / statistics / TmfStatisticsTreeNodeTest.java
index c597d9e9d0ed4665eb7a1e3c7a6bcb50e3876c0b..88acdba33859c736813479e5fbcb8edb4be0168b 100755 (executable)
@@ -19,8 +19,9 @@ import java.util.Vector;
 
 import junit.framework.TestCase;
 
+import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
 import org.eclipse.linuxtools.tmf.core.event.TmfEvent;
-import org.eclipse.linuxtools.tmf.core.event.TmfEventContent;
+import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
 import org.eclipse.linuxtools.tmf.core.event.TmfEventType;
 import org.eclipse.linuxtools.tmf.core.event.TmfTimestamp;
 import org.eclipse.linuxtools.tmf.core.util.TmfFixedArray;
@@ -54,9 +55,9 @@ public class TmfStatisticsTreeNodeTest extends TestCase {
     
     private final String fSource = "Source";
     
-    private final TmfEventType fType1 = new TmfEventType(fContext, fTypeId1, fLabels);
-    private final TmfEventType fType2 = new TmfEventType(fContext, fTypeId1, fLabels);
-    private final TmfEventType fType3 = new TmfEventType(fContext, fTypeId2, fLabels);
+    private final TmfEventType fType1 = new TmfEventType(fContext, fTypeId1, TmfEventField.makeRoot(fLabels));
+    private final TmfEventType fType2 = new TmfEventType(fContext, fTypeId1, TmfEventField.makeRoot(fLabels));
+    private final TmfEventType fType3 = new TmfEventType(fContext, fTypeId2, TmfEventField.makeRoot(fLabels));
     
     private final String fReference = "Some reference";
 
@@ -64,9 +65,9 @@ public class TmfStatisticsTreeNodeTest extends TestCase {
     private final TmfEvent fEvent2;
     private final TmfEvent fEvent3;
 
-    private final TmfEventContent fContent1;
-    private final TmfEventContent fContent2;
-    private final TmfEventContent fContent3;
+    private final TmfEventField fContent1;
+    private final TmfEventField fContent2;
+    private final TmfEventField fContent3;
     
     private final TmfBaseStatisticsTree fStatsData;
     
@@ -85,15 +86,15 @@ public class TmfStatisticsTreeNodeTest extends TestCase {
         fTestName = name;
         
         fEvent1 = new TmfEvent(fTimestamp1, fSource, fType1, fReference);
-        fContent1 = new TmfEventContent(fEvent1, "Some content");
+        fContent1 = new TmfEventField(ITmfEventField.ROOT_ID, "Some content");
         fEvent1.setContent(fContent1);
 
         fEvent2 = new TmfEvent(fTimestamp2, fSource, fType2, fReference);
-        fContent2 = new TmfEventContent(fEvent2, "Some other content");
+        fContent2 = new TmfEventField(ITmfEventField.ROOT_ID, "Some other content");
         fEvent2.setContent(fContent2);
         
         fEvent3 = new TmfEvent(fTimestamp3, fSource, fType3, fReference);
-        fContent3 = new TmfEventContent(fEvent3, "Some other different content");
+        fContent3 = new TmfEventField(ITmfEventField.ROOT_ID, "Some other different content");
         fEvent3.setContent(fContent3);
         
         fStatsData = new TmfBaseStatisticsTree();
This page took 0.024654 seconds and 5 git commands to generate.