pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1802177 - /pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java
Date Mon, 17 Jul 2017 17:31:51 GMT
Author: tilman
Date: Mon Jul 17 17:31:51 2017
New Revision: 1802177

URL: http://svn.apache.org/viewvc?rev=1802177&view=rev
Log:
PDFBOX-3873: set line separetor and reactivate text comparison

Modified:
    pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java

Modified: pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java?rev=1802177&r1=1802176&r2=1802177&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java
Mon Jul 17 17:31:51 2017
@@ -157,8 +157,9 @@ public class PDFontTest
         new PDFRenderer(doc).renderImage(0);
 
         PDFTextStripper stripper = new PDFTextStripper();
+        stripper.setLineSeparator("\n");
         String text = stripper.getText(doc);
-        //Assert.assertEquals("testMultipleFontFileReuse1\r\ntestMultipleFontFileReuse2\r\ntestMultipleFontFileReuse3\r\n",
text);
+        Assert.assertEquals("testMultipleFontFileReuse1\ntestMultipleFontFileReuse2\ntestMultipleFontFileReuse3\n",
text);
 
         doc.close();
     }



Mime
View raw message