Skip to content

Commit 01a5c0c

Browse files
author
EpicFn
committed
fix : 관련 테스트 케이스 수정
1 parent eacfbc2 commit 01a5c0c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/test/java/org/tuna/zoopzoop/backend/domain/space/membership/controller/ApiV1InviteControllerTest.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,14 @@ void getMyInvites_Success() throws Exception {
278278
resultActions
279279
.andExpect(jsonPath("$.data.spaces").isArray())
280280
.andExpect(jsonPath("$.data.spaces.length()").value(2))
281-
.andExpect(jsonPath("$.data.spaces[0].id").value(space1.getId()))
282-
.andExpect(jsonPath("$.data.spaces[0].name").value(space1.getName()))
283-
.andExpect(jsonPath("$.data.spaces[0].thumbnailUrl").value(space1.getThumbnailUrl()))
284-
.andExpect(jsonPath("$.data.spaces[1].id").value(space2.getId()))
285-
.andExpect(jsonPath("$.data.spaces[1].name").value(space2.getName()))
286-
.andExpect(jsonPath("$.data.spaces[1].thumbnailUrl").value(space2.getThumbnailUrl()));
281+
.andExpect(jsonPath("$.data.spaces[0].spaceId").value(space1.getId()))
282+
.andExpect(jsonPath("$.data.spaces[0].spaceName").value(space1.getName()))
283+
.andExpect(jsonPath("$.data.spaces[0].spaceThumbnailUrl").value(space1.getThumbnailUrl()))
284+
.andExpect(jsonPath("$.data.spaces[0].inviteId").isNumber())
285+
.andExpect(jsonPath("$.data.spaces[1].spaceId").value(space2.getId()))
286+
.andExpect(jsonPath("$.data.spaces[1].spaceName").value(space2.getName()))
287+
.andExpect(jsonPath("$.data.spaces[1].spaceThumbnailUrl").value(space2.getThumbnailUrl()))
288+
.andExpect(jsonPath("$.data.spaces[1].inviteId").isNumber());
287289
}
288290

289291

0 commit comments

Comments
 (0)