in tests was included loadModule function

This commit is contained in:
InsanusMokrassar 2020-02-13 16:34:26 +06:00
parent a5bcddae6e
commit cee263adb6
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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