aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2008-05-11 08:15:39 +0000
committerJosh Micich <josh@apache.org>2008-05-11 08:15:39 +0000
commit96c489deebd92d38a4780ec3ac49d9a0d19e2dd4 (patch)
tree5583ac9bb77236cacc32373f71345c37d8a7a10c /src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java
parente2cec361f37af84cae51d8987a3a5590adf88b6b (diff)
downloadpoi-96c489deebd92d38a4780ec3ac49d9a0d19e2dd4.tar.gz
poi-96c489deebd92d38a4780ec3ac49d9a0d19e2dd4.zip
41187 - fixed HSSFSheet to properly read xls files without ROW records
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@655278 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java
index b6f22022c6..f0c4139d2e 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFRow.java
@@ -143,8 +143,9 @@ public final class TestHSSFRow extends TestCase {
try {
sheet.createRow(-1);
fail("IndexOutOfBoundsException should have been thrown");
- } catch (IndexOutOfBoundsException ex) {
+ } catch (IllegalArgumentException e) {
// expected during successful test
+ assertEquals("Invalid row number (-1) outside allowable range (0..65535)", e.getMessage());
}
//Test high row bound
@@ -153,8 +154,9 @@ public final class TestHSSFRow extends TestCase {
try {
sheet.createRow(65536);
fail("IndexOutOfBoundsException should have been thrown");
- } catch (IndexOutOfBoundsException ex) {
+ } catch (IllegalArgumentException e) {
// expected during successful test
+ assertEquals("Invalid row number (65536) outside allowable range (0..65535)", e.getMessage());
}
}