You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2021/09/15 16:26:52 UTC
svn commit: r1893362 -
/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSUpdateInfoObserver.java
Author: msahyoun
Date: Wed Sep 15 16:26:52 2021
New Revision: 1893362
URL: http://svn.apache.org/viewvc?rev=1893362&view=rev
Log:
PDFBOX-5263: change class visibility; source formatting fix
Modified:
pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSUpdateInfoObserver.java
Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSUpdateInfoObserver.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSUpdateInfoObserver.java?rev=1893362&r1=1893361&r2=1893362&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSUpdateInfoObserver.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/cos/TestCOSUpdateInfoObserver.java Wed Sep 15 16:26:52 2021
@@ -45,7 +45,7 @@ import java.io.IOException;
import java.net.URL;
import java.util.ConcurrentModificationException;
-public class TestCOSUpdateInfoObserver
+class TestCOSUpdateInfoObserver
{
// TODO Very basic and primitive test - add in depth testing for all this.
@@ -232,11 +232,13 @@ public class TestCOSUpdateInfoObserver
assertTrue(document.getPage(1).getResources().getFontNames().iterator().hasNext(),
"Page 2 should have contained a font");
}
- catch (IOException e) {
+ catch (IOException e)
+ {
fail("Closing streams failed.");
}
- // TODO: remove the following - Convenience code - this creates the output file at some path, to see and touch it.
+ // TODO: remove the following - Convenience code - this creates the output file at some path,
+ // to see and touch it.
/*File outFile = new File("Some/path", "out.pdf");
try (FileOutputStream outputStream = new FileOutputStream(outFile)) {
outputStream.write(documentData);
@@ -271,9 +273,8 @@ public class TestCOSUpdateInfoObserver
}
}
-
-
- private PDDocument loadDocument(byte[] documentData) {
+ private PDDocument loadDocument(byte[] documentData)
+ {
return assertDoesNotThrow(() -> Loader.loadPDF(documentData), "Loading the document failed.");
}