diff options
author | Dominik Stadler <centic@apache.org> | 2015-05-12 04:54:47 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2015-05-12 04:54:47 +0000 |
commit | 229effd2ccfe7cafdb7697e5cbbceb066070c676 (patch) | |
tree | b196575804155c992cf053ed0c749c6c205c0e7a /src | |
parent | f857fbfb390922ca3d60c3b55dcaeea6b41d2bc6 (diff) | |
download | poi-229effd2ccfe7cafdb7697e5cbbceb066070c676.tar.gz poi-229effd2ccfe7cafdb7697e5cbbceb066070c676.zip |
Fix unit test which asserts on actual error message
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1678861 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/testcases/org/apache/poi/ss/usermodel/BaseTestRow.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestRow.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestRow.java index d013beaf21..ca59fa7f73 100644 --- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestRow.java +++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestRow.java @@ -137,7 +137,8 @@ public abstract class BaseTestRow extends TestCase { fail("expected exception"); } catch (IllegalArgumentException e) { // expected during successful test - assertTrue(e.getMessage().startsWith("Invalid row number (-1)")); + assertTrue("Did not find expected error message, had: " + e, + e.getMessage().startsWith("Invalid row number -1")); } //Test high row bound |