aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli/src/test/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-09-01 09:52:51 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-09-01 09:52:51 +0200
commit8fd373b3c463350ba2112963b29901dec0921827 (patch)
tree75259011223c9ae3874b86cfcc62ab2ed15a8f27 /pdf-as-cli/src/test/java
parentceb032dc4f3ed09d5883a3759a6c62f5f6510f4a (diff)
downloadpdf-as-4-8fd373b3c463350ba2112963b29901dec0921827.tar.gz
pdf-as-4-8fd373b3c463350ba2112963b29901dec0921827.tar.bz2
pdf-as-4-8fd373b3c463350ba2112963b29901dec0921827.zip
removed API warnings
Diffstat (limited to 'pdf-as-cli/src/test/java')
-rw-r--r--pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturProfileTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturProfileTest.java b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturProfileTest.java
index 8766a5bd..e14b8ca0 100644
--- a/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturProfileTest.java
+++ b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturProfileTest.java
@@ -30,7 +30,8 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-import sun.misc.IOUtils;
+import org.apache.commons.io.IOUtils;
+
import at.gv.egiz.pdfas.common.settings.ISettings;
import at.gv.egiz.pdfas.lib.api.ByteArrayDataSink;
import at.gv.egiz.pdfas.lib.api.ByteArrayDataSource;
@@ -87,8 +88,7 @@ public class SignaturProfileTest {
}
}
- byte[] input = IOUtils.readFully(new FileInputStream(sourcePDF),
- -1, true);
+ byte[] input = IOUtils.toByteArray(new FileInputStream(sourcePDF));
IPlainSigner signer = new PAdESSignerKeystore(KS_FILE, KS_ALIAS, KS_PASS, KS_KEY_PASS, KS_TYPE);
@@ -114,8 +114,7 @@ public class SignaturProfileTest {
fos.close();
}
- byte[] inputPDFA = IOUtils.readFully(new FileInputStream(sourcePDFA),
- -1, true);
+ byte[] inputPDFA = IOUtils.toByteArray(new FileInputStream(sourcePDFA));
Iterator<String> itPDFAProfiles = signaturePDFAProfiles.iterator();
while (itPDFAProfiles.hasNext()) {