Skip to content

Commit bddfbab

Browse files
committed
test: fix given clauses for chat-room-detail
1 parent df753a8 commit bddfbab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pennyway-app-external-api/src/test/java/kr/co/pennyway/api/apis/chat/service/ChatRoomSearchServiceTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ void successReadChatRooms() {
4545
// given
4646
Long userId = 1L;
4747
List<ChatRoomDetail> chatRooms = List.of(
48-
new ChatRoomDetail(1L, "Room1", "", "", 123456, LocalDateTime.now(), true, 2),
49-
new ChatRoomDetail(2L, "Room2", "", "", null, LocalDateTime.now(), false, 2)
48+
new ChatRoomDetail(1L, "Room1", "", "", 123456, LocalDateTime.now(), true, 2, true),
49+
new ChatRoomDetail(2L, "Room2", "", "", null, LocalDateTime.now(), false, 2, true)
5050
);
5151

5252
given(chatRoomService.readChatRoomsByUserId(userId)).willReturn(chatRooms);
@@ -101,8 +101,8 @@ void continueProcessingOnError() {
101101
// given
102102
Long userId = 1L;
103103
List<ChatRoomDetail> chatRooms = List.of(
104-
new ChatRoomDetail(1L, "Room1", "", "", 123456, LocalDateTime.now(), true, 2),
105-
new ChatRoomDetail(2L, "Room2", "", "", null, LocalDateTime.now(), false, 2)
104+
new ChatRoomDetail(1L, "Room1", "", "", 123456, LocalDateTime.now(), true, 2, true),
105+
new ChatRoomDetail(2L, "Room2", "", "", null, LocalDateTime.now(), false, 2, true)
106106
);
107107

108108
given(chatRoomService.readChatRoomsByUserId(userId)).willReturn(chatRooms);
@@ -124,7 +124,7 @@ void verifyServiceCallOrder() {
124124
// given
125125
Long userId = 1L;
126126
List<ChatRoomDetail> chatRooms = List.of(
127-
new ChatRoomDetail(1L, "Room1", "", "", 123456, LocalDateTime.now(), true, 2)
127+
new ChatRoomDetail(1L, "Room1", "", "", 123456, LocalDateTime.now(), true, 2, true)
128128
);
129129

130130
InOrder inOrder = inOrder(chatRoomService, chatMessageStatusService, chatMessageService, chatMessageService);

0 commit comments

Comments
 (0)