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:
parent
0cf470a5d4
commit
19630f1a29
@ -77,10 +77,9 @@ public class TestBug47563 extends TestCase {
|
|||||||
int mustBeAfter = 0;
|
int mustBeAfter = 0;
|
||||||
for (int i = 0; i < rows * columns; i++) {
|
for (int i = 0; i < rows * columns; i++) {
|
||||||
int next = text.indexOf(Integer.toString(i), mustBeAfter);
|
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;
|
mustBeAfter = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user