Search in sources :

Example 6 with RowEntry

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);
}
Also used : RowDataSet(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet) RowEntry(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry) Before(org.junit.Before)

Example 7 with RowEntry

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());
}
Also used : RowEntry(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry) Test(org.junit.Test)

Example 8 with RowEntry

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());
}
Also used : RowEntry(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry) Test(org.junit.Test)

Example 9 with RowEntry

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());
}
Also used : RowEntry(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry) Test(org.junit.Test)

Example 10 with RowEntry

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);
}
Also used : RowEntry(org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry) Before(org.junit.Before)

Aggregations

RowEntry (org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry)16 Test (org.junit.Test)11 IDataEntry (org.eclipse.linuxtools.systemtap.graphing.core.datasets.IDataEntry)3 RowDataSet (org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowDataSet)3 RangeFilter (org.eclipse.linuxtools.systemtap.graphing.core.filters.RangeFilter)3 SortFilter (org.eclipse.linuxtools.systemtap.graphing.core.filters.SortFilter)3 Before (org.junit.Before)3 FilteredRowDataSet (org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.FilteredRowDataSet)2 File (java.io.File)1 IOException (java.io.IOException)1 ImportDataSetHandler (org.eclipse.linuxtools.internal.systemtap.ui.ide.handlers.ImportDataSetHandler)1 IFilteredDataSet (org.eclipse.linuxtools.systemtap.graphing.core.datasets.IFilteredDataSet)1 TableEntry (org.eclipse.linuxtools.systemtap.graphing.core.datasets.table.TableEntry)1 Point (org.eclipse.swt.graphics.Point)1