From c4a26a18f40e14ef06dc135dad56d45e3f4cf4eb Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 12 May 2015 04:54:47 +0000 Subject: [PATCH] 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 --- src/testcases/org/apache/poi/ss/usermodel/BaseTestRow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestRow.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestRow.java index d013beaf2..ca59fa7f7 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