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
This commit is contained in:
Dominik Stadler 2015-05-12 04:54:47 +00:00
parent 6b6890152c
commit c4a26a18f4
1 changed files with 2 additions and 1 deletions

View File

@ -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