update tests and scripts

This commit is contained in:
2019-11-20 20:46:32 +06:00
parent e2d10ac152
commit 154617f9a2
6 changed files with 113 additions and 29 deletions

View File

@@ -3,6 +3,7 @@ package com.insanusmokrassar.sdi
import kotlinx.serialization.*
import kotlinx.serialization.json.Json
import kotlin.test.Test
import kotlin.test.assertTrue
interface ControllerAPI {
fun showUp()
@@ -12,8 +13,7 @@ interface ServiceAPI {
}
@Serializable
class Controller(@ContextualSerialization private val service : ServiceAPI) :
ControllerAPI {
class Controller(@ContextualSerialization private val service : ServiceAPI) : ControllerAPI {
override fun showUp() {
println("Inited with name \"${service.name}\"")
}
@@ -27,7 +27,7 @@ class BusinessService : ServiceAPI {
@ImplicitReflectionSerializer
class DeserializationTest {
@Test
fun `Test_that_simple_config_correctly_work`() {
fun test_that_simple_config_correctly_work() {
val input = """
{
"service": [