Fix tests

This commit is contained in:
Sergey Mashkov
2015-11-24 16:37:58 +03:00
parent b57d2ff702
commit e25d31618c
6 changed files with 10 additions and 9 deletions
@@ -1,8 +1,7 @@
import kotlin.jvm.JvmStatic as static
import kotlin.reflect.KFunction
import kotlin.reflect.jvm.*
import kotlin.test.assertEquals
import kotlin.test.failsWith
import kotlin.test.*
class C {
companion object {
@@ -25,7 +24,7 @@ fun box(): String {
return "Fail: no Kotlin function found for static bridge for @JvmStatic method in companion object C::foo"
assertEquals(3, k2.call(C, "ghi"))
failsWith(javaClass<NullPointerException>()) { k2.call(null, "")!! }
assertFailsWith(javaClass<NullPointerException>()) { k2.call(null, "")!! }
val j2 = k2.javaMethod
assertEquals(j, j2)