AbstractClientContentNegotiationTest

abstract class AbstractClientContentNegotiationTest : TestWithKtor

Base class for ContentNegotiation tests.

Constructors

Link copied to clipboard
fun AbstractClientContentNegotiationTest()

Types

Link copied to clipboard
data class Response<T>(ok: Boolean, result: T?)
Link copied to clipboard
sealed class TestSealed
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
open fun testGeneric()
Link copied to clipboard
open fun testSealed()
Link copied to clipboard
open fun testSerializeNested()
Link copied to clipboard
fun testSerializeSimple()
Link copied to clipboard
fun testSerializeWebsocket()

Properties

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