DefaultControllerTestContext
class DefaultControllerTestContext( appBuilder: ApplicationTestBuilder, environment: TestMutableInjectionEnvironment, configureClient: KtorTestClientConfig.() -> Unit) : ControllerTestContext, TestMutableInjectionEnvironment, ClientProvider
Content copied to clipboard
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)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun applicationBuilder(block: TestApplicationBuilder.() -> Unit)
Content 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
Content copied to clipboard
Link copied to clipboard
open override fun <T : Any> createInjector(identifier: Identifier<T>, onInjection: (T) -> Unit): Injector<T>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun <T : Any> getResolverOrNull(identifier: Identifier<T>): IdentifierResolver<T>?
Content copied to clipboard