File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
marklogic-client-api/src/test/java/com/marklogic/client/test Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 99import org .junit .jupiter .api .extension .ExtendWith ;
1010
1111import javax .net .ssl .SSLContext ;
12+ import javax .net .ssl .SSLException ;
1213import javax .net .ssl .SSLHandshakeException ;
1314import javax .net .ssl .TrustManager ;
1415
@@ -64,12 +65,7 @@ void defaultSslContext() throws Exception {
6465 MarkLogicIOException ex = assertThrows (MarkLogicIOException .class , () -> client .checkConnection (),
6566 "The connection should fail because the JVM's default SSL Context does not have a CA certificate that " +
6667 "corresponds to the test-only certificate that the app server is using for this test" );
67-
68- assertTrue (ex .getCause () instanceof SSLHandshakeException , "Unexpected cause: " + ex .getCause ());
69- String message = ex .getCause ().getMessage ();
70- assertTrue (message .contains ("PKIX path building failed" ), "The call should have failed because the JVM's " +
71- "default SSL context does not have a CA certificate for the app server's certificate; " +
72- "unexpected error: " + message );
68+ assertTrue (ex .getCause () instanceof SSLException , "Unexpected cause: " + ex .getCause ());
7369 }
7470
7571 @ Test
You can’t perform that action at this time.
0 commit comments