HSSFSheet sheet = workbook.createSheet();
HSSFRow row = sheet.createRow((short) 0);
assertEquals(-1, row.getLastCellNum());
+ assertEquals(-1, row.getFirstCellNum());
row.createCell((short)1);
assertEquals(1, row.getLastCellNum());
+ assertEquals(1, row.getFirstCellNum());
row.createCell((short)3);
assertEquals(3, row.getLastCellNum());
+ assertEquals(1, row.getFirstCellNum());
row.removeCell(row.getCell((short)3));
assertEquals(1, row.getLastCellNum());
+ assertEquals(1, row.getFirstCellNum());
row.removeCell(row.getCell((short)1));
assertEquals(-1, row.getLastCellNum());
+ assertEquals(-1, row.getFirstCellNum());
}
}