abstract class EngineTestBase<TEngine : ApplicationEngine, TConfiguration : Configuration> : CoroutineScope
annotation class Http2Only |
|
annotation class NoHttp2 |
EngineTestBase(applicationEngineFactory: ApplicationEngineFactory<TEngine, TConfiguration>) |
val applicationEngineFactory: ApplicationEngineFactory<TEngine, TConfiguration> |
|
var callGroupSize: Int |
|
open val coroutineContext: <ERROR CLASS> |
|
var enableHttp2: Boolean |
|
var enableSsl: Boolean |
|
val exceptions: <ERROR CLASS><Throwable> |
|
val isUnderDebugger: Boolean |
|
var port: Int |
|
var server: TEngine? |
|
val socketReadTimeout: Int |
|
var sslPort: Int |
|
val test: TestName |
|
val testDispatcher: ExecutorCoroutineDispatcher |
|
val testLog: Logger |
|
open val timeout: Long |
|
val timeoutRule: CoroutinesTimeout |
open fun configure(configuration: TConfiguration): Unit |
|
fun createAndStartServer(log: Logger? = null, parent: <ERROR CLASS> = EmptyCoroutineContext, routingConfigurer: Routing.() -> Unit): TEngine |
|
open fun createServer(log: Logger? = null, parent: <ERROR CLASS> = EmptyCoroutineContext, module: Application.() -> Unit): TEngine |
|
open fun features(application: Application, routingConfigurer: Routing.() -> Unit): Unit |
|
fun findFreePort(): Int |
|
fun setUpBase(): Unit |
|
fun socket(block: Socket.() -> Unit): Unit |
|
fun startServer(server: TEngine): List<Throwable> |
|
fun tearDownBase(): Unit |
|
fun withUrl(path: String, builder: suspend HttpRequestBuilder.() -> Unit = {}, block: suspend HttpResponse.(Int) -> Unit): Unit |
lateinit var keyStore: KeyStore |
|
val keyStoreFile: File |
|
lateinit var sslContext: SSLContext |
|
lateinit var trustManager: X509TrustManager |
fun setupAll(): Unit |