File tree 1 file changed +5
-5
lines changed
test/jdk/sun/security/rsa
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2015, 2018 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2015, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
21
21
* questions.
22
22
*/
23
23
24
+ import java .util .Arrays ;
25
+
24
26
/*
25
27
* @test
26
28
* @bug 8050374 8146293
31
33
* @summary Verify a chain of signed objects
32
34
*/
33
35
public class SignedObjectChain {
34
-
35
36
private static class Test extends Chain .Test {
36
37
37
38
public Test (Chain .SigAlg sigAlg ) {
@@ -52,10 +53,9 @@ public Test(Chain.SigAlg sigAlg) {
52
53
};
53
54
54
55
public static void main (String argv []) {
55
- boolean resutl = java .util .Arrays .stream (tests ).allMatch (
56
- (test ) -> Chain .runTest (test ));
56
+ boolean result = Arrays .stream (tests ).parallel ().allMatch (Chain ::runTest );
57
57
58
- if ( resutl ) {
58
+ if ( result ) {
59
59
System .out .println ("All tests passed" );
60
60
} else {
61
61
throw new RuntimeException ("Some tests failed" );
You can’t perform that action at this time.
0 commit comments