From 6d0b21ccc18e1cd548441c3f857d94990b1f6f6e Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 15 Oct 2014 18:30:58 +0200 Subject: PDF-AS-TEST Lib fixes --- .../src/test/java/at/gv/egiz/param_tests/PDFASignatureTest.java | 4 +++- .../src/test/java/at/gv/egiz/param_tests/SignaturePositionTest.java | 4 +++- pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignatureTest.java | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'pdf-as-tests/src/test') diff --git a/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/PDFASignatureTest.java b/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/PDFASignatureTest.java index e5c8e1be..4c3e754b 100644 --- a/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/PDFASignatureTest.java +++ b/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/PDFASignatureTest.java @@ -30,6 +30,7 @@ import at.gv.egiz.param_tests.provider.PDFAProvider; import at.gv.egiz.param_tests.serialization.SerializiationManager; import at.gv.egiz.param_tests.serialization.html.PDFAHTMLSerizalier; import at.gv.egiz.param_tests.testinfo.PDFATestInfo; +import at.gv.egiz.pdfas.common.exceptions.PDFASError; import at.gv.egiz.pdfas.common.exceptions.PdfAsException; /** @@ -97,10 +98,11 @@ public class PDFASignatureTest extends SignatureTest { * @throws FileNotFoundException * @throws IOException * @throws PdfAsException + * @throws PDFASError */ @Test public void pdfaTest() throws CertificateException, FileNotFoundException, - IOException, PdfAsException { + IOException, PdfAsException, PDFASError { PDFATestInfo testInfo = SerializiationManager.getInstance() .createTestInfo(PDFATestInfo.class, baseTestData); assertTrue("No input file given", baseTestData.getPdfFile() != null); diff --git a/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignaturePositionTest.java b/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignaturePositionTest.java index 282eeb05..baaf646c 100644 --- a/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignaturePositionTest.java +++ b/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignaturePositionTest.java @@ -32,6 +32,7 @@ import at.gv.egiz.param_tests.provider.SignaturePositionProvider; import at.gv.egiz.param_tests.serialization.SerializiationManager; import at.gv.egiz.param_tests.serialization.html.SignaturePositionHTMLSerializer; import at.gv.egiz.param_tests.testinfo.SignaturePositionTestInfo; +import at.gv.egiz.pdfas.common.exceptions.PDFASError; import at.gv.egiz.pdfas.common.exceptions.PdfAsException; /** @@ -191,11 +192,12 @@ public class SignaturePositionTest extends SignatureTest { * @throws PdfAsException * @throws IndexOutOfBoundsException * @throws PrinterException + * @throws PDFASError */ @Test public void signaturePositionTest() throws FileNotFoundException, CertificateException, IOException, PdfAsException, - IndexOutOfBoundsException, PrinterException { + IndexOutOfBoundsException, PrinterException, PDFASError { SignaturePositionTestInfo testInfo = SerializiationManager .getInstance().createTestInfo(SignaturePositionTestInfo.class, baseTestData); diff --git a/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignatureTest.java b/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignatureTest.java index e4ff9325..6b18afa5 100644 --- a/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignatureTest.java +++ b/pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignatureTest.java @@ -21,6 +21,7 @@ import org.slf4j.LoggerFactory; import at.gv.egiz.param_tests.provider.BaseSignatureDataProvider; import at.gv.egiz.param_tests.provider.BaseSignatureTestData; +import at.gv.egiz.pdfas.common.exceptions.PDFASError; import at.gv.egiz.pdfas.common.exceptions.PdfAsException; import at.gv.egiz.pdfas.common.utils.StreamUtils; import at.gv.egiz.pdfas.lib.api.ByteArrayDataSource; @@ -89,7 +90,7 @@ public class SignatureTest { * @throws PdfAsException */ protected File signPDFFile() throws IOException, FileNotFoundException, - CertificateException, PdfAsException { + CertificateException, PDFASError, PdfAsException { File inputFile = new File(baseTestData.getPdfFile()); File outputPdfFile = new File(baseTestData.getOutputFile()); DataSource dataSource = new ByteArrayDataSource( -- cgit v1.2.3