diff --git a/app/core/src/test/java/stirling/software/SPDF/service/CertificateValidationServiceTest.java b/app/core/src/test/java/stirling/software/SPDF/service/CertificateValidationServiceTest.java index d48be513d..c2eb2505c 100644 --- a/app/core/src/test/java/stirling/software/SPDF/service/CertificateValidationServiceTest.java +++ b/app/core/src/test/java/stirling/software/SPDF/service/CertificateValidationServiceTest.java @@ -41,10 +41,11 @@ class CertificateValidationServiceTest { when(validation.getTrust()).thenReturn(trust); when(validation.getRevocation()).thenReturn(revocation); when(validation.isAllowAIA()).thenReturn(false); - when(validation.isEnableEUTL()).thenReturn(false); when(trust.isServerAsAnchor()).thenReturn(false); when(trust.isUseSystemTrust()).thenReturn(false); when(trust.isUseMozillaBundle()).thenReturn(false); + when(trust.isUseAATL()).thenReturn(false); + when(trust.isUseEUTL()).thenReturn(false); when(revocation.getMode()).thenReturn("none"); when(revocation.isHardFail()).thenReturn(false); @@ -85,22 +86,6 @@ class CertificateValidationServiceTest { assertTrue(result, "Expired certificate should be outside validity period"); } - @Test - @SuppressWarnings("deprecation") - void testDeprecatedIsRevoked_ValidCertificate() { - // Test deprecated method for backwards compatibility - boolean result = validationService.isRevoked(validCertificate); - assertFalse(result, "Valid certificate should not be considered revoked"); - } - - @Test - @SuppressWarnings("deprecation") - void testDeprecatedIsRevoked_ExpiredCertificate() { - // Test deprecated method for backwards compatibility - boolean result = validationService.isRevoked(expiredCertificate); - assertTrue(result, "Expired certificate should be considered revoked (legacy behavior)"); - } - // Note: Full integration tests for buildAndValidatePath() would require // real certificate chains and trust anchors. These would be better as // integration tests using actual signed PDFs from the test-signed-pdfs directory.