@@ -5,14 +5,12 @@ import io.ktor.client.request.get
55import io.ktor.client.statement.bodyAsText
66import io.ktor.http.HttpStatusCode
77import io.ktor.server.testing.testApplication
8- import io.mockk.every
98import io.mockk.mockk
109import kotlinx.coroutines.runBlocking
1110import no.java.conf.plugins.configureSearchRouting
1211import no.java.conf.service.SearchService
1312import kotlin.test.Test
1413import kotlin.test.assertEquals
15- import kotlin.test.assertTrue
1614
1715class StateTest {
1816 @Test
@@ -22,7 +20,6 @@ class StateTest {
2220 val service = SearchService (searchClient, false )
2321
2422 testApplication {
25-
2623 application {
2724 configureSearchRouting(service)
2825 }
@@ -34,15 +31,13 @@ class StateTest {
3431 }
3532 }
3633
37-
3834 @Test
3935 fun testSkipIndex () {
4036 val searchClient = mockk<SearchClient >()
4137
4238 val service = SearchService (searchClient, true )
4339
4440 testApplication {
45-
4641 application {
4742 configureSearchRouting(service)
4843 }
@@ -65,7 +60,6 @@ class StateTest {
6560 }
6661
6762 testApplication {
68-
6963 application {
7064 configureSearchRouting(service)
7165 }
@@ -77,7 +71,6 @@ class StateTest {
7771 }
7872 }
7973
80-
8174 @Test
8275 fun testSkipIndexIndexed () {
8376 val searchClient = mockk<SearchClient >()
@@ -90,7 +83,6 @@ class StateTest {
9083 }
9184
9285 testApplication {
93-
9486 application {
9587 configureSearchRouting(service)
9688 }
0 commit comments