diff options
| author | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-07-02 14:06:44 +0200 | 
|---|---|---|
| committer | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-07-02 14:06:44 +0200 | 
| commit | 8ed8e4e931c1cb3d3c814a53a07f73b566c3b719 (patch) | |
| tree | dba21ab5f37c7dee3265cdc43796d1aa9bfa5266 /pdf-as-tests/src/test/java/at/gv | |
| parent | b51e3b877fa7c8b930e63fd8e1317e34d7d4773e (diff) | |
| download | pdf-as-4-8ed8e4e931c1cb3d3c814a53a07f73b566c3b719.tar.gz pdf-as-4-8ed8e4e931c1cb3d3c814a53a07f73b566c3b719.tar.bz2 pdf-as-4-8ed8e4e931c1cb3d3c814a53a07f73b566c3b719.zip | |
v4.2.0
Diffstat (limited to 'pdf-as-tests/src/test/java/at/gv')
| -rw-r--r-- | pdf-as-tests/src/test/java/at/gv/egiz/param_tests/SignaturePositionTest.java | 9 | 
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); | 
