DefaultControllerTestContext
class DefaultControllerTestContext(appBuilder: ApplicationTestBuilder, environment: TestMutableInjectionEnvironment, configureClient: KtorTestClientConfig.() -> Unit) : ControllerTestContext, TestMutableInjectionEnvironment, ClientProvider
A default implementation of ControllerTestContext that delegates implementations to existing elements.
Constructors
Link copied to clipboard
fun DefaultControllerTestContext(appBuilder: ApplicationTestBuilder, environment: TestMutableInjectionEnvironment, configureClient: KtorTestClientConfig.() -> Unit)
Functions
Link copied to clipboard
Provides this test's TestApplicationBuilder in the lambda, which can be used to further set up Ktor's test facilities.
Link copied to clipboard
open override fun createClient(block: HttpClientConfig<out HttpClientEngineConfig>.() -> Unit): HttpClient
Link copied to clipboard
open override fun <T : Any> createInjector(identifier: Identifier<T>, onInjection: (T) -> Unit): Injector<T>
Link copied to clipboard
Link copied to clipboard