aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf-as-tests/build.gradle2
-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
4 files changed, 9 insertions, 4 deletions
diff --git a/pdf-as-tests/build.gradle b/pdf-as-tests/build.gradle
index 25535ae3..6d964735 100644
--- a/pdf-as-tests/build.gradle
+++ b/pdf-as-tests/build.gradle
@@ -24,7 +24,7 @@ dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.apache.pdfbox', name: 'preflight', version: '1.8.7'
testCompile group: 'org.apache.pdfbox', name: 'pdfbox', version: '1.8.7'
- testCompile group: 'org.icepdf.os', name: 'icepdf-core', version: '5.1.0'
+ testCompile group: 'org.icepdf', name: 'icepdf-core', version: '5.0.7'
}
logger.info("Building tasks for Test suites")
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(