use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry in project linuxtools by eclipse.
the class RowDataSetTest method setUp.
@Before
public void setUp() {
data = new RowDataSet(new String[] { "a", "b", "c" });
entry0 = new RowEntry();
entry0.putRow(0, new String[] { "1", "2", "3" });
data.setData(entry0);
RowEntry entry = new RowEntry();
entry.putRow(0, new String[] { "4", "5", "6" });
data.setData(entry);
}
use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry in project linuxtools by eclipse.
the class RowDataSetTest method testAppend.
@Test
public void testAppend() {
assertEquals(2, data.getEntryCount());
RowEntry entry = new RowEntry();
entry.putRow(0, new String[] { "1", "2", "3" });
data.append(entry);
assertEquals(3, data.getEntryCount());
}
use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry in project linuxtools by eclipse.
the class RowDataSetTest method testSetData.
@Test
public void testSetData() {
assertEquals(2, data.getEntryCount());
RowEntry entry = new RowEntry();
entry.putRow(0, new String[] { "1", "2", "3" });
data.setData(entry);
assertEquals(3, data.getEntryCount());
}
use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry in project linuxtools by eclipse.
the class RowEntryTest method testGetColCount.
@Test
public void testGetColCount() {
RowEntry entry2 = new RowEntry();
assertEquals(0, entry2.getColCount());
entry2 = new RowEntry();
entry2.putRow(0, null);
assertEquals(0, entry2.getColCount());
assertEquals(3, entry.getColCount());
}
use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry in project linuxtools by eclipse.
the class RowEntryTest method setUp.
@Before
public void setUp() {
entry = new RowEntry();
data = new Integer[] { 2, 5, 4 };
entry.putRow(0, data);
}
Aggregations