File tree 1 file changed +2
-6
lines changed
marklogic-client-api/src/test/java/com/marklogic/client/test
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 9
9
import org .junit .jupiter .api .extension .ExtendWith ;
10
10
11
11
import javax .net .ssl .SSLContext ;
12
+ import javax .net .ssl .SSLException ;
12
13
import javax .net .ssl .SSLHandshakeException ;
13
14
import javax .net .ssl .TrustManager ;
14
15
@@ -64,12 +65,7 @@ void defaultSslContext() throws Exception {
64
65
MarkLogicIOException ex = assertThrows (MarkLogicIOException .class , () -> client .checkConnection (),
65
66
"The connection should fail because the JVM's default SSL Context does not have a CA certificate that " +
66
67
"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 ());
73
69
}
74
70
75
71
@ Test
You can’t perform that action at this time.
0 commit comments