JsonTest

abstract class JsonTest : TestWithKtor

Base class for JSON tests.

Types

Response

data class Response<T>

User

data class User

Widget

data class Widget

Constructors

<init>

JsonTest()

Base class for JSON tests.

Properties

customContentType

val customContentType: ContentType

serializerImpl

abstract val serializerImpl: JsonSerializer?

server

open val server: ApplicationEngine

users

val users: <ERROR CLASS>

widget

val widget: Widget

Inherited Properties

serverPort

val serverPort: Int

timeout

open val timeout: CoroutinesTimeout

Functions

configClient

fun TestClientBuilder<*>.configClient(): Unit

createRoutes

open fun createRoutes(routing: Routing): Unit

testCustomContentTypes

fun testCustomContentTypes(): Unit

testCustomContentTypesMultiple

fun testCustomContentTypesMultiple(): Unit

testCustomContentTypesWildcard

fun testCustomContentTypesWildcard(): Unit

testEmptyBody

fun testEmptyBody(): Unit

testSerializeNested

fun testSerializeNested(): Unit

testSerializeSimple

fun testSerializeSimple(): Unit

Inherited Functions

startServer

fun startServer(): Unit

stopServer

fun stopServer(): Unit