From 229effd2ccfe7cafdb7697e5cbbceb066070c676 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 d013beaf21..ca59fa7f73 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 -- 2.39.5