Author: danielwilson Date: Mon Feb 22 21:45:58 2010 New Revision: 915077 URL: http://svn.apache.org/viewvc?rev=915077&view=rev Log: Correct path in code that checks for files being identical. Previously, it was incorrectly saying nothing matched ... b/c it couldn't find the file.
Modified: pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java Modified: pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java?rev=915077&r1=915076&r2=915077&view=diff ============================================================================== --- pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java (original) +++ pdfbox/trunk/src/test/java/org/apache/pdfbox/util/TestPDFToImage.java Mon Feb 22 21:45:58 2010 @@ -36,13 +36,13 @@ * * This test suite is designed to test PDFToImage using a set of PDF * files and known good output for each. The default mode of testAll() - * is to process each *.pdf file in "test/input". An output file is - * created in "test/output" with the same name as the PDF file, plus an - * additional ".jpg" suffix. + * is to process each *.pdf file in "src/test/resources/input/rendering". An output file is + * created in "target/test-output/rendering" with the same name as the PDF file, plus an + * additional page number and ".png" suffix. * * The output file is then tested against a known good result file from * the input directory (again, with the same name as the tested PDF file, - * but with the additional ".jpg" suffix). + * but with the additional page number and ".png" suffix). * * Currently, testing against known output is simply a byte-for-byte comparison * @@ -134,7 +134,7 @@ }); for (int n = 0; n < outFiles.length; n++) { - File inFile = new File(inDir + outFiles[n].getName()); + File inFile = new File(inDir + '/' + outFiles[n].getName()); if (!inFile.exists() || !filesAreIdentical(outFiles[n], inFile)) {