Browse Source

Fix bad import in tests

tags/v0.2.1
Chris Smith 5 years ago
parent
commit
b0d3c17663
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/test/kotlin/com/dmdirc/ktirc/io/KtorLineBufferedSocketTest.kt

+ 2
- 2
src/test/kotlin/com/dmdirc/ktirc/io/KtorLineBufferedSocketTest.kt View File

@@ -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
         }

Loading…
Cancel
Save