Package guru.zoroark.tegral.web.controllers.test
Types
Link copied to clipboard
interface ControllerTestContext : TestMutableInjectionEnvironment, ClientProvider
Content copied to clipboard
The context provided to applications in TegralControllerTest.test's block.
Link copied to clipboard
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.
Link copied to clipboard
typealias KtorTestClientConfig = HttpClientConfig<out HttpClientEngineConfig>
Content copied to clipboard
Link copied to clipboard
abstract class TegralControllerTest<TSubject : Any>(subjectClass: KClass<TSubject>, baseModule: InjectableModule) : TegralAbstractSubjectTest<TSubject, ControllerTestContext>
Content copied to clipboard
A subject-based test for Controllers-based classes (more specifically, for subclasses of KtorModule and KtorController).