From 19630f1a29eee188edc9952cca27772464004010 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sun, 3 Nov 2013 10:11:09 +0000 Subject: [PATCH] Add more output to assertion in test-case that is sometimes failing, see e.g. Jenkins build #170... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1538330 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/usermodel/TestBug47563.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java index b352b05a6..ec64fd5a3 100644 --- a/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java +++ b/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java @@ -65,7 +65,7 @@ public class TestBug47563 extends TestCase { par.insertBefore("" + (rowIdx * row.numCells() + colIdx)); par.sanityCheck(); - + row.sanityCheck(); table.sanityCheck(); range.sanityCheck(); @@ -77,10 +77,9 @@ public class TestBug47563 extends TestCase { int mustBeAfter = 0; for (int i = 0; i < rows * columns; i++) { int next = text.indexOf(Integer.toString(i), mustBeAfter); - assertFalse(next == -1); + assertTrue("Test with " + rows + "/" + columns + ": Should not find " + i + " but found it at " + next + " in " + text, + next != -1); mustBeAfter = next; } } - - }