]> source.dussan.org Git - poi.git/commitdiff
findFirstRow testcase...
authorGlen Stampoultzis <glens@apache.org>
Mon, 8 Apr 2002 14:03:56 +0000 (14:03 +0000)
committerGlen Stampoultzis <glens@apache.org>
Mon, 8 Apr 2002 14:03:56 +0000 (14:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352363 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java

index fb1b82f0ebd4fd61b9d0dff2f5894e100aa4fd38..f8c584839a892720b5ac60dbf0dddd688f3e36ee 100644 (file)
@@ -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());
 
     }
 }