aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java5
1 files changed, 5 insertions, 0 deletions
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());
}
}