Created
July 31, 2020 10:58
-
-
Save mathias21/6570ae3f1e43aa2064c40c2f0b7cd290 to your computer and use it in GitHub Desktop.
KtorEasy routing testing tooling 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun <R> withBaseTestApplication(test: TestApplicationEngine.() -> R) { | |
withTestApplication({ | |
install(ContentNegotiation) { gson { } } | |
koinModules?.let { | |
install(Koin) { | |
modules(it) | |
} | |
} | |
moduleList() | |
}) { | |
test() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment