Author: tilman
Date: Wed Aug 19 16:09:36 2026
New Revision: 1937239
Log:
PDFBOX-5660: call main to improve code coverage
Modified:
pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
Modified:
pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
==============================================================================
---
pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
Wed Aug 19 16:09:33 2026 (r1937238)
+++
pdfbox/branches/2.0/examples/src/test/java/org/apache/pdfbox/examples/pdmodel/TestCreateSignature.java
Wed Aug 19 16:09:36 2026 (r1937239)
@@ -265,6 +265,7 @@ public class TestCreateSignature
* @throws GeneralSecurityException
* @throws TSPException
* @throws CertificateVerificationException
+ * @throws OCSPException
*/
@Test
public void testCreateSignedTimeStamp()
@@ -306,8 +307,8 @@ public class TestCreateSignature
String substring = name.substring(0, name.lastIndexOf('.'));
File outFile = new File(outDir, substring + "_LTV.pdf");
- AddValidationInformation addValidationInformation = new
AddValidationInformation();
- addValidationInformation.validateSignature(inFile, outFile);
+ // use main() for extra coverage, only possible if in the same
directory
+ AddValidationInformation.main(new String[] { inFile.getAbsolutePath()
});
checkLTV(outFile);
}