Skip to content

Commit c4da6cc

Browse files
committed
test: 커피챗 입장하기 응답이 변경됨에 따라 테스트 코드 수정
1 parent b16ea51 commit c4da6cc

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

member-api/src/test/java/com/kernelsquare/memberapi/domain/coffeechat/controller/CoffeeChatControllerTest.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,8 @@ void testEnterCoffeeChatRoom() throws Exception {
137137

138138
MemberAdapter memberAdapter = new MemberAdapter(MemberAdaptorInstance.of(member));
139139

140-
ChatRoomMember chatRoomMember = ChatRoomMember.from(member);
141-
142140
EnterCoffeeChatRoomResponse enterCoffeeChatRoomResponse = EnterCoffeeChatRoomResponse.of(
143-
enterCoffeeChatRoomRequest.articleTitle(), chatRoom, List.of(chatRoomMember));
141+
enterCoffeeChatRoomRequest.articleTitle(), chatRoom);
144142

145143
given(coffeeChatService.enterCoffeeChatRoom(any(EnterCoffeeChatRoomRequest.class),
146144
any(MemberAdapter.class))).willReturn(enterCoffeeChatRoomResponse);
@@ -171,11 +169,6 @@ void testEnterCoffeeChatRoom() throws Exception {
171169
fieldWithPath("data.article_title").type(JsonFieldType.STRING).description("게시글 제목"),
172170
fieldWithPath("data.room_key").type(JsonFieldType.STRING).description("채팅방 키"),
173171
fieldWithPath("data.active").type(JsonFieldType.BOOLEAN).description("활성화 여부"),
174-
fieldWithPath("data.member_list").type(JsonFieldType.ARRAY).description("채팅방 멤버 리스트"),
175-
fieldWithPath("data.member_list[].member_id").type(JsonFieldType.NUMBER).description("멤버 아이디"),
176-
fieldWithPath("data.member_list[].nickname").type(JsonFieldType.STRING).description("멤버 닉네임"),
177-
fieldWithPath("data.member_list[].member_image_url").type(JsonFieldType.STRING)
178-
.description("멤버 이미지 URL"),
179172
fieldWithPath("data.expiration_time").type(JsonFieldType.STRING).description("채팅방 만료 시간")
180173
)));
181174

0 commit comments

Comments
 (0)