mirror of https://github.com/apache/poi.git
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
f857fbfb39
commit
229effd2cc
|
@ -137,7 +137,8 @@ public abstract class BaseTestRow extends TestCase {
|
||||||
fail("expected exception");
|
fail("expected exception");
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
// expected during successful test
|
// 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
|
//Test high row bound
|
||||||
|
|
Loading…
Reference in New Issue