From 455433ffc936b72483317b74849e4f27ab6003cb Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Tue, 9 Jun 2026 15:07:54 +0200 Subject: 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 --- .../src/test/java/at/gv/egiz/pdfas/web/test/MockMoaSigningTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pdf-as-web/src/test/java') 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"); } }) { -- cgit v1.2.3