You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2014/02/19 16:27:25 UTC

svn commit: r1569788 - /tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java

Author: tallison
Date: Wed Feb 19 15:27:24 2014
New Revision: 1569788

URL: http://svn.apache.org/r1569788
Log:
got rid of brittle requirement for specific number of pdfs to be tested in PDFParserTest

Modified:
    tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java

Modified: tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java
URL: http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java?rev=1569788&r1=1569787&r2=1569788&view=diff
==============================================================================
--- tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java (original)
+++ tika/trunk/tika-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java Wed Feb 19 15:27:24 2014
@@ -563,9 +563,9 @@ public class PDFParserTest extends TikaT
             }
         }
         //make sure nothing went wrong with getting the resource to test-documents
-        //This will require modification with each new pdf test.
-        //If this is too annoying, we can turn it off.
-        assertEquals("Number of pdf files tested", 16, pdfs);
+        //must have tested >= 15 pdfs
+        boolean ge15 = (pdfs >= 15);
+        assertTrue("Number of pdf files tested >= 15 in non-sequential parser test", ge15);
     }