archana 0623
05/03/2021, 12:51 PM@Test
fun testRequests() {
withTestApplication({ main() }) {
with(handleRequest(HttpMethod.Get, Resource.path)) {
assertEquals(HttpStatusCode.OK, response.status())
}
}
}
and using mockk.io to mock the other layers but looks like it is not working, it is still trying to connect to actual DB and runs the server at given port if I just remove db related connection initializations..