Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8272708: [Test]: Cleanup: test/jdk/security/infra/java/security/cert/CertPathValidator/certification/ no longer needs ocspEnabled #34

wants to merge 1 commit into from
Changes from all commits
File filter

Filter by extension

Filter by extension

Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -57,18 +57,15 @@ public static void main(String[] args) throws Exception {

ValidatePathWithParams pathValidator = new ValidatePathWithParams(null);

boolean ocspEnabled = true;

if (args.length >= 1 && "CRL".equalsIgnoreCase(args[0])) {
ocspEnabled = false;
} else {
// OCSP check by default

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);