Skip to content

Commit 74007d7

Browse files
#791 - Create an empty SSL connection instead of a mock which throws a null pointer exception
1 parent 5535311 commit 74007d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/marklogic/client/test/SSLTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void testSSLAuth() throws NoSuchAlgorithmException, KeyManagementExceptio
5050

5151
// create an SSL context
5252
SSLContext sslContext = SSLContext.getInstance("SSLv3");
53-
sslContext.init(null, new TrustManager[] { mock(X509TrustManager.class) }, null);
53+
sslContext.init(null, null, null);
5454

5555
// create the client
5656
DatabaseClient client = DatabaseClientFactory.newClient(Common.HOST, Common.PORT, new DigestAuthContext("MyFooUser", "x")

0 commit comments

Comments
 (0)