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: List<User>

widget

val widget: Widget

Inherited Properties

serverPort

val serverPort: Int

Functions

configClient

fun TestClientBuilder<*>.configClient(): Unit

createRoutes

open fun createRoutes(routing: Routing): Unit

testCustomContentTypes

fun testCustomContentTypes(): <ERROR CLASS>

testCustomContentTypesMultiple

fun testCustomContentTypesMultiple(): <ERROR CLASS>

testCustomContentTypesWildcard

fun testCustomContentTypesWildcard(): <ERROR CLASS>

testSerializeNested

fun testSerializeNested(): <ERROR CLASS>

testSerializeSimple

fun testSerializeSimple(): <ERROR CLASS>

Inherited Functions

startServer

fun startServer(): Unit

stopServer

fun stopServer(): Unit