From 4bd37c315333325b69db8d55c0c3aaf74c95024f Mon Sep 17 00:00:00 2001 From: Thejasvi Voniadka Date: Fri, 20 Aug 2021 03:15:04 +0000 Subject: [PATCH] 8272708: [Test]: Cleanup: test/jdk/security/infra/java/security/cert/CertPathValidator/certification/BuypassCA.java no longer needs ocspEnabled Reviewed-by: rhalade --- .../cert/CertPathValidator/certification/BuypassCA.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/jdk/security/infra/java/security/cert/CertPathValidator/certification/BuypassCA.java b/test/jdk/security/infra/java/security/cert/CertPathValidator/certification/BuypassCA.java index 452d4db4eda..9ad20271bec 100644 --- a/test/jdk/security/infra/java/security/cert/CertPathValidator/certification/BuypassCA.java +++ b/test/jdk/security/infra/java/security/cert/CertPathValidator/certification/BuypassCA.java @@ -57,18 +57,15 @@ public class BuypassCA { ValidatePathWithParams pathValidator = new ValidatePathWithParams(null); - boolean ocspEnabled = true; - if (args.length >= 1 && "CRL".equalsIgnoreCase(args[0])) { pathValidator.enableCRLCheck(); - ocspEnabled = false; } else { // OCSP check by default pathValidator.enableOCSPCheck(); } new BuypassClass2().runTest(pathValidator); - new BuypassClass3().runTest(pathValidator, ocspEnabled); + new BuypassClass3().runTest(pathValidator); } } @@ -320,8 +317,7 @@ class BuypassClass3 { "BJmiWd5uUxev0nVw0saqvlo4yAEBq4rI/DieKcQI4qEI8myzoS0R0azMfLM=\n" + "-----END CERTIFICATE-----"; - public void runTest(ValidatePathWithParams pathValidator, boolean ocspEnabled) - throws Exception { + public void runTest(ValidatePathWithParams pathValidator) throws Exception { // Validate valid pathValidator.validate(new String[]{VALID_CLASS_3, INT_CLASS_3}, ValidatePathWithParams.Status.GOOD, null, System.out);