From cee263adb6b7ca10fb553c20ba591a69a4e23406 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 13 Feb 2020 16:34:26 +0600 Subject: [PATCH] in tests was included loadModule function --- src/commonTest/kotlin/com/insanusmokrassar/sdi/ListTest.kt | 2 +- .../kotlin/com/insanusmokrassar/sdi/SimpleCustomObjectTest.kt | 2 +- src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleTest.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commonTest/kotlin/com/insanusmokrassar/sdi/ListTest.kt b/src/commonTest/kotlin/com/insanusmokrassar/sdi/ListTest.kt index 62abb6f..b3351cb 100644 --- a/src/commonTest/kotlin/com/insanusmokrassar/sdi/ListTest.kt +++ b/src/commonTest/kotlin/com/insanusmokrassar/sdi/ListTest.kt @@ -45,7 +45,7 @@ class ListTest { ] } """.trimIndent() - val module = Json.plain.parse(Module.serializer(), input) + val module = loadModule(input) (module[controllerName] as List_ParentalAPI) val controller = (module[controllerName] as List_Parent) controller.services.forEachIndexed { i, service -> diff --git a/src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleCustomObjectTest.kt b/src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleCustomObjectTest.kt index 23091e6..a6d358b 100644 --- a/src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleCustomObjectTest.kt +++ b/src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleCustomObjectTest.kt @@ -79,7 +79,7 @@ class SimpleCustomObjectTest { ] } """.trimIndent() - val module = Json.plain.parse(Module.serializer(), input) + val module = loadModule(input) (module[controllerName] as SimpleCustomObject_ControllerAPI) val controller = (module["controller"] as SimpleCustomObject_Controller) diff --git a/src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleTest.kt b/src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleTest.kt index a02fe3a..44d1b8d 100644 --- a/src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleTest.kt +++ b/src/commonTest/kotlin/com/insanusmokrassar/sdi/SimpleTest.kt @@ -43,7 +43,7 @@ class SimpleTest { ] } """.trimIndent() - val module = Json.plain.parse(Module.serializer(), input) + val module = loadModule(input) (module[controllerName] as Simple_ControllerAPI) val controller = (module["controller"] as Simple_Controller) assertEquals(names.toList(), controller.service.names)