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:
parent
6b6890152c
commit
c4a26a18f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user