|
@@ -9,10 +9,10 @@ import org.junit.jupiter.api.Assertions.*
|
9
|
9
|
import org.junit.jupiter.api.Test
|
10
|
10
|
import org.junit.jupiter.api.parallel.Execution
|
11
|
11
|
import org.junit.jupiter.api.parallel.ExecutionMode
|
12
|
|
-import sun.security.validator.ValidatorException
|
13
|
12
|
import java.io.File
|
14
|
13
|
import java.net.ServerSocket
|
15
|
14
|
import java.security.KeyStore
|
|
15
|
+import java.security.cert.CertificateException
|
16
|
16
|
import java.security.cert.X509Certificate
|
17
|
17
|
import javax.net.ssl.KeyManagerFactory
|
18
|
18
|
import javax.net.ssl.SSLContext
|
|
@@ -43,7 +43,7 @@ internal class KtorLineBufferedSocketTest {
|
43
|
43
|
socket.connect()
|
44
|
44
|
assertNotNull(clientSocketAsync.await())
|
45
|
45
|
fail<Unit>()
|
46
|
|
- } catch (ex : ValidatorException) {
|
|
46
|
+ } catch (ex : CertificateException) {
|
47
|
47
|
// Expected
|
48
|
48
|
}
|
49
|
49
|
}
|