use of org.knime.core.data.v2.RowRead in project knime-core by knime.
the class FallbackIteratorTest method testIdentity.
@Test
public void testIdentity() throws Exception {
final BufferedDataTable fullTable = createTable(0, 16, 16, 0, 16);
try (RowCursor cursor = fullTable.cursor();
CloseableRowIterator it = fullTable.iterator()) {
assertEquals(cursor.getNumColumns(), fullTable.getDataTableSpec().getNumColumns());
while (cursor.canForward()) {
assertTrue(it.hasNext());
final RowRead access = cursor.forward();
final DataRow row = it.next();
for (int i = 0; i < cursor.getNumColumns(); i++) {
access.getValue(i).equals(row.getCell(i));
}
}
}
}
Aggregations