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
This commit is contained in:
Dominik Stadler 2013-11-03 10:11:09 +00:00
parent 0cf470a5d4
commit 19630f1a29
1 changed files with 3 additions and 4 deletions

View File

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