Skip to content

Commit 916e03b

Browse files
Adapt test.
These tests needed to be adapted due to the fact that the previous test did not actually change the default value.
1 parent 940c1c5 commit 916e03b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/src/test/java/org/neo4j/driver/internal/SecuritySettingsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void testSelfSignedCertConfigDisablesHostnameVerification( String scheme ) throw
106106
void testThrowsOnUserCustomizedEncryption( String scheme )
107107
{
108108
SecuritySettings securitySettings = new SecuritySettings.SecuritySettingsBuilder()
109-
.withoutEncryption()
109+
.withEncryption()
110110
.build();
111111

112112
ClientException ex =
@@ -121,7 +121,7 @@ void testThrowsOnUserCustomizedEncryption( String scheme )
121121
void testThrowsOnUserCustomizedTrustConfiguration( String scheme )
122122
{
123123
SecuritySettings securitySettings = new SecuritySettings.SecuritySettingsBuilder()
124-
.withTrustStrategy( Config.TrustStrategy.trustSystemCertificates() )
124+
.withTrustStrategy( Config.TrustStrategy.trustAllCertificates() )
125125
.build();
126126

127127
ClientException ex =

0 commit comments

Comments
 (0)