From: Glen Stampoultzis Date: Mon, 8 Apr 2002 14:03:56 +0000 (+0000) Subject: findFirstRow testcase... X-Git-Tag: REL_1_5_0~106 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f9fd75d5f5b62ea79f6c18faa7dadfc85c09009;p=poi.git findFirstRow testcase... git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352363 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java index fb1b82f0eb..f8c584839a 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java @@ -101,14 +101,19 @@ public class TestHSSFRow 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()); } }