2323import org .junit .jupiter .params .provider .MethodSource ;
2424
2525import java .util .stream .Stream ;
26- import javax .net .ssl .SSLContext ;
2726
2827import org .neo4j .driver .Config ;
2928import org .neo4j .driver .exceptions .ClientException ;
3029import org .neo4j .driver .internal .security .SecurityPlan ;
3130
32- import static org .junit .Assert .assertEquals ;
3331import static org .junit .jupiter .api .Assertions .assertFalse ;
3432import static org .junit .jupiter .api .Assertions .assertThrows ;
3533import static org .junit .jupiter .api .Assertions .assertTrue ;
@@ -75,11 +73,9 @@ void testSystemCertCompatibleConfiguration( String scheme ) throws Exception
7573
7674 SecurityPlan securityPlan = securitySettings .createSecurityPlan ( scheme );
7775
78- SSLContext defaultContext = SSLContext .getDefault ();
79-
8076 assertTrue ( securityPlan .requiresEncryption () );
8177 assertTrue ( securityPlan .requiresHostnameVerification () );
82- assertEquals ( defaultContext , securityPlan .sslContext () );
78+ assertFalse ( securityPlan .requiresRevocationChecking () );
8379 }
8480
8581 @ ParameterizedTest
@@ -140,7 +136,7 @@ void testThrowsOnUserCustomizedTrustConfigurationAndEncryption( String scheme )
140136 assertTrue ( ex .getMessage ().contains ( String .format ( "Scheme %s is not configurable with manual encryption and trust settings" , scheme ) ));
141137 }
142138
143- @ ParameterizedTest ()
139+ @ ParameterizedTest
144140 @ MethodSource ( "unencryptedSchemes" )
145141 void testNoEncryption ( String scheme )
146142 {
@@ -151,7 +147,7 @@ void testNoEncryption( String scheme )
151147 assertFalse ( securityPlan .requiresEncryption () );
152148 }
153149
154- @ ParameterizedTest ()
150+ @ ParameterizedTest
155151 @ MethodSource ( "unencryptedSchemes" )
156152 void testConfiguredEncryption ( String scheme )
157153 {
@@ -163,7 +159,7 @@ void testConfiguredEncryption( String scheme )
163159 assertTrue ( securityPlan .requiresEncryption () );
164160 }
165161
166- @ ParameterizedTest ()
162+ @ ParameterizedTest
167163 @ MethodSource ( "unencryptedSchemes" )
168164 void testConfiguredAllCertificates ( String scheme )
169165 {
@@ -177,7 +173,7 @@ void testConfiguredAllCertificates( String scheme)
177173 assertTrue ( securityPlan .requiresEncryption () );
178174 }
179175
180- @ ParameterizedTest ()
176+ @ ParameterizedTest
181177 @ MethodSource ( "unencryptedSchemes" )
182178 void testConfigureRevocationChecking ( String scheme )
183179 {
@@ -191,7 +187,7 @@ void testConfigureRevocationChecking( String scheme )
191187 assertTrue ( securityPlan .requiresRevocationChecking () );
192188 }
193189
194- @ ParameterizedTest ()
190+ @ ParameterizedTest
195191 @ MethodSource ( "unencryptedSchemes" )
196192 void testRevocationCheckingDisabledByDefault ( String scheme )
197193 {
0 commit comments