fulstaph
05/14/2022, 2:21 PMclass ApplicationTest {
@Test
fun testRoot() = testApplication {
val response = client.get("/")
assertEquals(HttpStatusCode.OK, response.status)
}
}
basically this sample test is failing because it seems like testApplication
tries to init hikari conn pool. If I run database everything is ok. Can I substitute this w/ in memory database somehow? Or better yet, drop the DB connection altogether and use service layer mock?
Sorry if the question is dumb, I have no experience with JVM ecosystem, would be glad to get any suggestions.asad.awadia
05/14/2022, 4:11 PM