Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit 92dd716

Browse files
committed
ASAP-409 불필요 테스트 제거
1 parent d300cd0 commit 92dd716

1 file changed

Lines changed: 0 additions & 48 deletions

File tree

Bootstrap-Module/src/test/kotlin/com/asap/bootstrap/integration/space/SpaceApiIntegrationTest.kt

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -65,54 +65,6 @@ class SpaceApiIntegrationTest(
6565
}
6666
}
6767
}
68-
69-
@Test
70-
fun getMainSpaceId_with_changedIndex() {
71-
// given
72-
val userId = userMockManager.settingUser()
73-
val accessToken = jwtMockManager.generateAccessToken(userId)
74-
val spaceIndexes =
75-
(0..3).map {
76-
val spaceId = spaceMockManager.settingSpace(userId).id.value
77-
UpdateSpaceOrderRequest.SpaceOrder(spaceId, 3 - it)
78-
}
79-
mockMvc.put("/api/v1/spaces/order") {
80-
contentType = MediaType.APPLICATION_JSON
81-
content = objectMapper.writeValueAsString(UpdateSpaceOrderRequest(spaceIndexes))
82-
header("Authorization", "Bearer $accessToken")
83-
}
84-
// when
85-
val response =
86-
mockMvc.get("/api/v1/spaces/main") {
87-
contentType = MediaType.APPLICATION_JSON
88-
header("Authorization", "Bearer $accessToken")
89-
}
90-
91-
// then
92-
response.andExpect {
93-
status { isOk() }
94-
jsonPath("$.spaceId") {
95-
exists()
96-
isString()
97-
isNotEmpty()
98-
value(spaceIndexes[3].spaceId)
99-
}
100-
jsonPath("$.username") {
101-
exists()
102-
isString()
103-
isNotEmpty()
104-
}
105-
jsonPath("$.templateType") {
106-
exists()
107-
isNumber()
108-
}
109-
jsonPath("$.spaceName") {
110-
exists()
111-
isString()
112-
isNotEmpty()
113-
}
114-
}
115-
}
11668
}
11769

11870
@Nested

0 commit comments

Comments
 (0)