Init empty project
This commit is contained in:
21
src/test/kotlin/io/github/flecomte/ApplicationTest.kt
Normal file
21
src/test/kotlin/io/github/flecomte/ApplicationTest.kt
Normal file
@@ -0,0 +1,21 @@
|
||||
package io.github.flecomte
|
||||
|
||||
import io.github.flecomte.plugins.*
|
||||
import io.ktor.client.request.*
|
||||
import io.ktor.client.statement.*
|
||||
import io.ktor.http.*
|
||||
import io.ktor.server.testing.*
|
||||
import kotlin.test.*
|
||||
|
||||
class ApplicationTest {
|
||||
@Test
|
||||
fun testRoot() = testApplication {
|
||||
application {
|
||||
configureRouting()
|
||||
}
|
||||
client.get("/").apply {
|
||||
assertEquals(HttpStatusCode.OK, status)
|
||||
assertEquals("Hello World!", bodyAsText())
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user