mirror of https://github.com/apache/poi.git
findFirstRow testcase...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8bf48bd37f
commit
7f9fd75d5f
|
@ -101,14 +101,19 @@ public class TestHSSFRow
|
||||||
HSSFSheet sheet = workbook.createSheet();
|
HSSFSheet sheet = workbook.createSheet();
|
||||||
HSSFRow row = sheet.createRow((short) 0);
|
HSSFRow row = sheet.createRow((short) 0);
|
||||||
assertEquals(-1, row.getLastCellNum());
|
assertEquals(-1, row.getLastCellNum());
|
||||||
|
assertEquals(-1, row.getFirstCellNum());
|
||||||
row.createCell((short)1);
|
row.createCell((short)1);
|
||||||
assertEquals(1, row.getLastCellNum());
|
assertEquals(1, row.getLastCellNum());
|
||||||
|
assertEquals(1, row.getFirstCellNum());
|
||||||
row.createCell((short)3);
|
row.createCell((short)3);
|
||||||
assertEquals(3, row.getLastCellNum());
|
assertEquals(3, row.getLastCellNum());
|
||||||
|
assertEquals(1, row.getFirstCellNum());
|
||||||
row.removeCell(row.getCell((short)3));
|
row.removeCell(row.getCell((short)3));
|
||||||
assertEquals(1, row.getLastCellNum());
|
assertEquals(1, row.getLastCellNum());
|
||||||
|
assertEquals(1, row.getFirstCellNum());
|
||||||
row.removeCell(row.getCell((short)1));
|
row.removeCell(row.getCell((short)1));
|
||||||
assertEquals(-1, row.getLastCellNum());
|
assertEquals(-1, row.getLastCellNum());
|
||||||
|
assertEquals(-1, row.getFirstCellNum());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue