ControllerTestContext

The context provided to applications in TegralControllerTest.test's block.

Three kinds of elements are available:

Inheritors

Functions

Link copied to clipboard
abstract fun applicationBuilder(block: TestApplicationBuilder.() -> Unit)

Provides this test's TestApplicationBuilder in the lambda, which can be used to further set up Ktor's test facilities.

Link copied to clipboard
abstract fun createClient(block: HttpClientConfig<out HttpClientEngineConfig>.() -> Unit): HttpClient
Link copied to clipboard
abstract fun <T : Any> createInjector(identifier: Identifier<T>, onInjection: (T) -> Unit): Injector<T>
Link copied to clipboard
open fun <T : Any> get(identifier: Identifier<T>): T
Link copied to clipboard
Link copied to clipboard
abstract fun <T : Any> getOrNull(identifier: Identifier<T>): T?
Link copied to clipboard
abstract fun <T : Any> getResolverOrNull(identifier: Identifier<T>): IdentifierResolver<T>?
Link copied to clipboard
abstract fun <T : Any> put(declaration: Declaration<T>)

Properties

Link copied to clipboard
abstract val client: HttpClient
Link copied to clipboard
Link copied to clipboard