Jeff Hudson
testApplication
application.conf
@Test fun testRoot() = testApplication { client.get("/").apply { assertEquals(HttpStatusCode.OK, status) assertEquals("Hello World!", bodyAsText()) } }
@Test fun testRoot() = testApplication { environment { config = HoconApplicationConfig(ConfigFactory.load()) } client.get("/").apply { assertEquals(HttpStatusCode.OK, status) assertEquals("Hello World!", bodyAsText()) } }
Aleksei Tirman [JB]
A modern programming language that makes developers happier.