aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-tests/src/test/java/at/gv/egiz/param_tests
diff options
context:
space:
mode:
authorThomas <>2021-03-26 09:54:41 +0100
committerThomas <>2021-03-26 09:54:41 +0100
commit510fca957d9cf00260efe7ed78a663d46c69adb7 (patch)
tree8129c4ab6ff144e28a02d0a8f443561ce8a5e52e /pdf-as-tests/src/test/java/at/gv/egiz/param_tests
parentb51e3b877fa7c8b930e63fd8e1317e34d7d4773e (diff)
downloadpdf-as-4-510fca957d9cf00260efe7ed78a663d46c69adb7.tar.gz
pdf-as-4-510fca957d9cf00260efe7ed78a663d46c69adb7.tar.bz2
pdf-as-4-510fca957d9cf00260efe7ed78a663d46c69adb7.zip
update gradle build-process to wrapper 6.8.3
Diffstat (limited to 'pdf-as-tests/src/test/java/at/gv/egiz/param_tests')
-rw-r--r--pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignaturePositionTest.java9
1 files changed, 6 insertions, 3 deletions
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 baaf646c..cb06b669 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
@@ -163,9 +163,10 @@ public class SignaturePositionTest extends SignatureTest {
* reference image, as well as the location of the reference
* image with ignored areas
* @throws IOException
+ * @throws InterruptedException
*/
private void captureReferenceImage(SignaturePositionTestInfo testInfo)
- throws IOException {
+ throws IOException, InterruptedException {
String pdfName = baseTestData.getOutputFile();
String referenceOutputFile = refImageFileName;
int pageNumber = sigPageNumber;
@@ -193,11 +194,12 @@ public class SignaturePositionTest extends SignatureTest {
* @throws IndexOutOfBoundsException
* @throws PrinterException
* @throws PDFASError
+ * @throws InterruptedException
*/
@Test
public void signaturePositionTest() throws FileNotFoundException,
CertificateException, IOException, PdfAsException,
- IndexOutOfBoundsException, PrinterException, PDFASError {
+ IndexOutOfBoundsException, PrinterException, PDFASError, InterruptedException {
SignaturePositionTestInfo testInfo = SerializiationManager
.getInstance().createTestInfo(SignaturePositionTestInfo.class,
baseTestData);
@@ -309,8 +311,9 @@ public class SignaturePositionTest extends SignatureTest {
* @param pageNumber
* the page number which should be captured
* @return the captured image
+ * @throws InterruptedException
*/
- private BufferedImage captureImage(String fileName, int pageNumber) {
+ private BufferedImage captureImage(String fileName, int pageNumber) throws InterruptedException {
Document document = new Document();
try {
document.setFile(fileName);