TestApplication
A configured instance of a test application running locally.
See also
Properties
Link copied to clipboard
Returns an instance of Application behind this test application.
Link copied to clipboard
Returns the current client attached to the test application instance.
Functions
Link copied to clipboard
open override fun createClient(block: HttpClientConfig<out HttpClientEngineConfig>.() -> Unit): HttpClient
Creates a client with a custom configuration. For example, to send JSON data in a test POST/PUT request, you can install the ContentNegotiation
plugin:
Link copied to clipboard
Starts this TestApplication instance.
Link copied to clipboard
Stops this TestApplication instance.