Cleanup deprecated symbol usages in testData

This commit is contained in:
Ilya Gorbunov
2016-01-16 20:10:40 +03:00
parent eefbd72a64
commit 25c4453dc5
403 changed files with 933 additions and 921 deletions
@@ -11,7 +11,7 @@ private fun test() = "K"
fun box(): String {
val clazz = Class.forName("test.TestKt")
assertEquals(1, clazz.declaredMethods.size(), "Facade should have only box and getProp methods")
assertEquals(1, clazz.declaredMethods.size, "Facade should have only box and getProp methods")
assertEquals("box", clazz.declaredMethods.first().name, "Facade should have only box method")
return {
@@ -13,7 +13,7 @@ private fun test() = "K"
fun box(): String {
val clazz = Class.forName("test.TestKt")
assertEquals(2, clazz.declaredMethods.size(), "Facade should have only box method")
assertEquals(2, clazz.declaredMethods.size, "Facade should have only box method")
val methods = clazz.declaredMethods.map { it.name }
assertTrue(methods.contains("box"), "Facade should have box method")
assertTrue(methods.contains("getProp"), "Facade should have box method")