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 f857fbfb39
commit 229effd2cc
1 changed files with 2 additions and 1 deletions

View File

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