All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.assembly.RaptorKtorTestPlugin.kt Maven / Gradle / Ivy

There is a newer version: 0.27.0
Show newest version
package io.fluidsonic.raptor.ktor

import io.fluidsonic.raptor.*
import io.ktor.server.testing.*
import kotlinx.coroutines.*


public object RaptorKtorTestPlugin : RaptorPlugin {

	@Suppress("INVISIBLE_MEMBER")
	override fun RaptorPluginInstallationScope.install() {
		install(RaptorKtorPlugin)

		ktor.servers.all {
			engineEnvironmentFactory(::createTestEnvironment)
			engineFactory(::TestApplicationEngine)
			startStopDispatcher(Dispatchers.Unconfined)
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy