aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-tests/src/test/java/at/gv/egiz
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-15 18:30:58 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-15 18:30:58 +0200
commit6d0b21ccc18e1cd548441c3f857d94990b1f6f6e (patch)
treeef51eb21f409a6a8d0672d8e873ba5cda1c8c794 /pdf-as-tests/src/test/java/at/gv/egiz
parent0b663afa4d0167df1e838e1f37bb5862e8951037 (diff)
downloadpdf-as-4-6d0b21ccc18e1cd548441c3f857d94990b1f6f6e.tar.gz
pdf-as-4-6d0b21ccc18e1cd548441c3f857d94990b1f6f6e.tar.bz2
pdf-as-4-6d0b21ccc18e1cd548441c3f857d94990b1f6f6e.zip
PDF-AS-TEST Lib fixes
Diffstat (limited to 'pdf-as-tests/src/test/java/at/gv/egiz')
-rw-r--r--pdf-as-tests/src/test/java/at/gv/egiz/param_tests/PDFASignatureTest.java4
-rw-r--r--pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignaturePositionTest.java4
-rw-r--r--pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignatureTest.java3
3 files changed, 8 insertions, 3 deletions
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(