use of org.eclipse.linuxtools.systemtap.graphing.core.datasets.row.RowEntry in project linuxtools by eclipse.
the class FilteredTableDataSetTest method testRemove.
@Test
public void testRemove() {
assertFalse(dataSet.remove(null));
assertFalse(dataSet.remove(new RowEntry()));
assertFalse(dataSet.remove(-1));
assertFalse(dataSet.remove(10));
assertEquals(0, dataSet.getEntryCount());
TableEntry entry = new TableEntry();
entry.add(new String[] { "1", "2", "3" });
data.append(entry);
entry = (TableEntry) data.getEntry(0);
assertEquals(1, dataSet.getEntryCount());
assertTrue(dataSet.remove(entry));
assertEquals(0, dataSet.getEntryCount());
assertFalse(dataSet.remove(entry));
assertFalse(dataSet.remove(0));
}
Aggregations