Here's a simple test case: ``` fun Application.tes...
# ktor
m
Here's a simple test case:
Copy code
fun Application.testableApplication() {
    install(Routing) {
        route("/test") {
            get {
                delay(100)
                call.respond(HttpStatusCode.OK, "The Response")
            }
        }
    }
}

class ApplicationTest {
    @Test
    fun testRequest() = withTestApplication(Application::testableApplication) {
        with(handleRequest(HttpMethod.Get, "/test")) {
            assertEquals(HttpStatusCode.OK, response.status())
            assertEquals("The Response", response.content)
        }
    }
}