From 92dd7167208ceafda5e7fdfb825cdd40ca396a20 Mon Sep 17 00:00:00 2001 From: Sim-km Date: Sat, 8 Feb 2025 23:03:03 +0900 Subject: [PATCH] =?UTF-8?q?ASAP-409=20=EB=B6=88=ED=95=84=EC=9A=94=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../space/SpaceApiIntegrationTest.kt | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/Bootstrap-Module/src/test/kotlin/com/asap/bootstrap/integration/space/SpaceApiIntegrationTest.kt b/Bootstrap-Module/src/test/kotlin/com/asap/bootstrap/integration/space/SpaceApiIntegrationTest.kt index 208437d..e4dc91d 100644 --- a/Bootstrap-Module/src/test/kotlin/com/asap/bootstrap/integration/space/SpaceApiIntegrationTest.kt +++ b/Bootstrap-Module/src/test/kotlin/com/asap/bootstrap/integration/space/SpaceApiIntegrationTest.kt @@ -65,54 +65,6 @@ class SpaceApiIntegrationTest( } } } - - @Test - fun getMainSpaceId_with_changedIndex() { - // given - val userId = userMockManager.settingUser() - val accessToken = jwtMockManager.generateAccessToken(userId) - val spaceIndexes = - (0..3).map { - val spaceId = spaceMockManager.settingSpace(userId).id.value - UpdateSpaceOrderRequest.SpaceOrder(spaceId, 3 - it) - } - mockMvc.put("/api/v1/spaces/order") { - contentType = MediaType.APPLICATION_JSON - content = objectMapper.writeValueAsString(UpdateSpaceOrderRequest(spaceIndexes)) - header("Authorization", "Bearer $accessToken") - } - // when - val response = - mockMvc.get("/api/v1/spaces/main") { - contentType = MediaType.APPLICATION_JSON - header("Authorization", "Bearer $accessToken") - } - - // then - response.andExpect { - status { isOk() } - jsonPath("$.spaceId") { - exists() - isString() - isNotEmpty() - value(spaceIndexes[3].spaceId) - } - jsonPath("$.username") { - exists() - isString() - isNotEmpty() - } - jsonPath("$.templateType") { - exists() - isNumber() - } - jsonPath("$.spaceName") { - exists() - isString() - isNotEmpty() - } - } - } } @Nested