This repository was archived by the owner on Jul 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Application-Module/src/main/kotlin/com/asap/application/space/service
Bootstrap-Module/src/test/kotlin/com/asap/bootstrap/integration/space Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ class SpaceCommandService(
8989
9090 try {
9191 spaceIndexValidator.validate(
92- spaces = spaces, // todo: space로 수정하기
92+ spaces = spaces,
9393 validateIndex = changeIndexMap,
9494 )
9595 } catch (e: DefaultException .InvalidArgumentException ) {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import com.asap.bootstrap.web.space.dto.DeleteMultipleSpacesRequest
88import com.asap.bootstrap.web.space.dto.UpdateSpaceNameRequest
99import com.asap.bootstrap.web.space.dto.UpdateSpaceOrderRequest
1010import com.asap.domain.common.DomainId
11+ import io.kotest.matchers.collections.shouldContainExactlyInAnyOrder
1112import io.kotest.matchers.maps.haveValue
1213import io.kotest.matchers.shouldBe
1314import io.kotest.matchers.string.haveLength
@@ -448,11 +449,8 @@ class SpaceApiIntegrationTest(
448449 response.andExpect {
449450 status { isOk() }
450451 }
451- // TODO: port를 통해 조회하고 검증해야함
452- // spaceMockManager.getSpaceIndexes(userId) shouldBe
453- // spaceIndexes
454- // .map { it.spaceId to it.index }
455- // .sortedBy { it.second }
452+ val spaceIds = spaceManagementPort.getAllSpaceBy(DomainId (userId)).map { it.id.value }
453+ spaceIds shouldContainExactlyInAnyOrder spaceIndexes.map { it.spaceId }
456454 }
457455
458456 @Test
You can’t perform that action at this time.
0 commit comments