assertCurrentValue(cursor, position, tuple);
}
public static void assertCurrentValue(BlockCursor cursor, int position, Tuple tuple)
{
TupleInfo tupleInfo = tuple.getTupleInfo();
assertEquals(cursor.getTupleInfo(), tupleInfo);
assertEquals(cursor.getTuple(), tuple);
assertEquals(cursor.getPosition(), position);
assertTrue(cursor.currentTupleEquals(tuple));
assertEquals(cursor.isNull(), tuple.isNull());
switch (tupleInfo.getType()) {
case BOOLEAN:
assertEquals(cursor.getBoolean(), tuple.getBoolean());
try {
cursor.getSlice();
fail("Expected IllegalStateException or UnsupportedOperationException");