Skip to content

Commit 89afcbe

Browse files
committed
Fix test.
1 parent ea1ee50 commit 89afcbe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/kotlin/com/embabel/hub/HubApiControllerTest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMock
1313
import org.springframework.boot.test.context.SpringBootTest
1414
import org.springframework.http.MediaType
1515
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
16-
import org.springframework.test.annotation.Rollback
1716
import org.springframework.test.context.ContextConfiguration
1817
import org.springframework.test.web.servlet.MockMvc
1918
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post
20-
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.*
19+
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath
20+
import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status
2121

2222
@SpringBootTest
23+
@AutoConfigureMockMvc
2324
@ContextConfiguration(initializers = [Neo4jPropertiesInitializer::class])
2425
@ImportAutoConfiguration(exclude = [McpClientAutoConfiguration::class])
2526
class HubApiControllerTest {

0 commit comments

Comments
 (0)