diff options
| author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2026-06-09 15:07:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-09 15:07:54 +0200 |
| commit | 455433ffc936b72483317b74849e4f27ab6003cb (patch) | |
| tree | 134d23bc0aa62c3101270dde726ff36bbb5b8e0c /pdf-as-web/src/test/java/at | |
| parent | ab521a7b02d2f01673ab944bbe76c6426edea646 (diff) | |
| download | pdf-as-4-455433ffc936b72483317b74849e4f27ab6003cb.tar.gz pdf-as-4-455433ffc936b72483317b74849e4f27ab6003cb.tar.bz2 pdf-as-4-455433ffc936b72483317b74849e4f27ab6003cb.zip | |
Clean up `Connector` usages (#90)
* migrate all connector-string uses to Connector enum, and fail early for unsupported connectors
* extra null guards + clean up equals for enums
* unify the parameter checking for jks too
* make empty/null inputs fail earlier
* exception instead of empty return
Diffstat (limited to 'pdf-as-web/src/test/java/at')
| -rw-r--r-- | pdf-as-web/src/test/java/at/gv/egiz/pdfas/web/test/MockMoaSigningTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-web/src/test/java/at/gv/egiz/pdfas/web/test/MockMoaSigningTest.java b/pdf-as-web/src/test/java/at/gv/egiz/pdfas/web/test/MockMoaSigningTest.java index e6bfa4c6..a94899e2 100644 --- a/pdf-as-web/src/test/java/at/gv/egiz/pdfas/web/test/MockMoaSigningTest.java +++ b/pdf-as-web/src/test/java/at/gv/egiz/pdfas/web/test/MockMoaSigningTest.java @@ -127,7 +127,7 @@ public class MockMoaSigningTest extends TestUtils.CanWatchOperationCount { injectProperties(Map.of( "moal."+keyIdentifier+".enabled", "true", "moal."+keyIdentifier+".url", endpointURL, - "moal."+keyIdentifier+".timeout", "5000", + "moal."+keyIdentifier+".timeout", "1000", "moal."+keyIdentifier+".KeyIdentifier", "KG_TEST", "moal."+keyIdentifier+".Certificate", "base64:"+Base64.getEncoder().encodeToString(signer.getCertificate(null).getEncoded()) @@ -217,7 +217,7 @@ public class MockMoaSigningTest extends TestUtils.CanWatchOperationCount { @SneakyThrows public CreateCMSSignatureResponseType createCMSSignature(CreateCMSSignatureRequest body) throws MOAFault { // this will cause a timeout - Thread.sleep(10 * 1000); + Thread.sleep(3 * 1000); throw new RuntimeException("unreachable"); } }) { |
