]> source.dussan.org Git - poi.git/commitdiff
Add more output to assertion in test-case that is sometimes failing, see e.g. Jenkins...
authorDominik Stadler <centic@apache.org>
Sun, 3 Nov 2013 10:11:09 +0000 (10:11 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 3 Nov 2013 10:11:09 +0000 (10:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1538330 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestBug47563.java

index b352b05a640c061fd460d4cae0efdee31c901c13..ec64fd5a359de5b80e626ef1e38b8445a0fddadc 100644 (file)
@@ -65,7 +65,7 @@ public class TestBug47563 extends TestCase {
 \r
                                par.insertBefore("" + (rowIdx * row.numCells() + colIdx));\r
                                par.sanityCheck();\r
-\r
+                               \r
                                row.sanityCheck();\r
                                table.sanityCheck();\r
                                range.sanityCheck();\r
@@ -77,10 +77,9 @@ public class TestBug47563 extends TestCase {
                int mustBeAfter = 0;\r
                for (int i = 0; i < rows * columns; i++) {\r
                        int next = text.indexOf(Integer.toString(i), mustBeAfter);\r
-                       assertFalse(next == -1);\r
+                       assertTrue("Test with " + rows + "/" + columns + ": Should not find " + i + " but found it at " + next + " in " + text, \r
+                                       next != -1);\r
                        mustBeAfter = next;\r
                }\r
        }\r
-\r
-\r
 }\r