JsonTest

abstract class JsonTest : TestWithKtor

Base class for JSON tests.

Constructors

Link copied to clipboard
fun JsonTest()

Types

Link copied to clipboard
data class Response<T>(ok: Boolean, result: T?)
Link copied to clipboard
data class User(name: String, age: Int)
Link copied to clipboard
data class Widget(name: String, value: Int, tags: List<String>)

Functions

Link copied to clipboard
fun startServer()
Link copied to clipboard
fun stopServer()
Link copied to clipboard
fun testCustomContentTypes()
Link copied to clipboard
fun testCustomContentTypesMultiple()
Link copied to clipboard
fun testCustomContentTypesWildcard()
Link copied to clipboard
fun testEmptyBody()
Link copied to clipboard
fun testSerializeNested()
Link copied to clipboard
fun testSerializeSimple()

Properties

Link copied to clipboard
open override val server: ApplicationEngine
Link copied to clipboard
open val timeout: CoroutinesTimeout