feature: Init empty Project

This commit is contained in:
2019-07-19 09:52:03 +02:00
commit 8af57b775e
12 changed files with 422 additions and 0 deletions

25
test/ApplicationTest.kt Normal file
View File

@@ -0,0 +1,25 @@
package fr.dcproject
import io.ktor.application.*
import io.ktor.response.*
import io.ktor.request.*
import io.ktor.routing.*
import io.ktor.http.*
import io.ktor.locations.*
import io.ktor.auth.*
import io.ktor.gson.*
import io.ktor.features.*
import kotlin.test.*
import io.ktor.server.testing.*
class ApplicationTest {
@Test
fun testRoot() {
withTestApplication({ module(testing = true) }) {
handleRequest(HttpMethod.Get, "/").apply {
assertEquals(HttpStatusCode.OK, response.status())
assertEquals("HELLO WORLD!", response.content)
}
}
}
}