This repository was archived by the owner on Jul 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
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 @@ -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
You can’t perform that action at this time.
0 commit comments