mirror of
https://github.com/InsanusMokrassar/SDI.git
synced 2024-11-30 14:08:54 +00:00
in tests was included loadModule function
This commit is contained in:
parent
a5bcddae6e
commit
cee263adb6
@ -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 ->
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user