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)