Skip to content

Commit

Permalink
ci: 충돌 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonyj1022 committed Nov 17, 2023
1 parent 0195e3d commit beebe84
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,20 +241,14 @@ void setUp() {
.andExpectAll(
status().isOk(),
jsonPath("$.[0].id", is(조회용_채팅방1.id()), Long.class),
jsonPath("$.[0].chatPartner.name", is(조회용_채팅방1.partnerDto()
.name())),
jsonPath("$.[0].auction.title", is(조회용_채팅방1.auctionDto()
.title())),
jsonPath("$.[0].lastMessage.contents", is(조회용_채팅방1.lastMessageDto()
.contents())),
jsonPath("$.[0].chatPartner.name", is(조회용_채팅방1.partnerDto().name())),
jsonPath("$.[0].auction.title", is(조회용_채팅방1.auctionDto().title())),
jsonPath("$.[0].lastMessage.contents", is(조회용_채팅방1.lastMessageDto().contents())),
jsonPath("$.[0].unreadMessageCount", is(조회용_채팅방1.unreadMessageCount()), Long.class),
jsonPath("$.[1].id", is(조회용_채팅방2.id()), Long.class),
jsonPath("$.[1].chatPartner.name", is(조회용_채팅방2.partnerDto()
.name())),
jsonPath("$.[1].auction.title", is(조회용_채팅방2.auctionDto()
.title())),
jsonPath("$.[1].lastMessage.contents", is(조회용_채팅방2.lastMessageDto()
.contents())),
jsonPath("$.[1].chatPartner.name", is(조회용_채팅방2.partnerDto().name())),
jsonPath("$.[1].auction.title", is(조회용_채팅방2.auctionDto().title())),
jsonPath("$.[1].lastMessage.contents", is(조회용_채팅방2.lastMessageDto().contents())),
jsonPath("$.[1].unreadMessageCount", is(조회용_채팅방1.unreadMessageCount()), Long.class)
);
readAllParticipatingChatRooms_문서화(resultActions);
Expand Down Expand Up @@ -288,10 +282,8 @@ void setUp() {
.andExpectAll(
status().isOk(),
jsonPath("$.id", is(조회용_중인_채팅방.id()), Long.class),
jsonPath("$.chatPartner.name", is(조회용_중인_채팅방.partnerDto()
.name())),
jsonPath("$.auction.title", is(조회용_중인_채팅방.auctionDto()
.title()))
jsonPath("$.chatPartner.name", is(조회용_중인_채팅방.partnerDto().name())),
jsonPath("$.auction.title", is(조회용_중인_채팅방.auctionDto().title()))
);
readChatRoom_문서화(resultActions);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public class ChatRoomControllerFixture extends CommonControllerSliceTest {

private Long 탈퇴한_사용자_아이디 = 5L;
protected PrivateClaims 사용자_ID_클레임 = new PrivateClaims(1L);
protected ReadUserInChatRoomDto 판매자 = new ReadUserInChatRoomDto(1L, "판매자", 1L, 5.0d, false);
private ReadUserInChatRoomDto 구매자1 = new ReadUserInChatRoomDto(2L, "구매자1", 2L, 5.0d, false);
private ReadUserInChatRoomDto 구매자2 = new ReadUserInChatRoomDto(3L, "구매자2", 3L, 5.0d, false);
private ReadAuctionInChatRoomDto 조회용_경매1 = new ReadAuctionInChatRoomDto(1L, "경매1", 10_000, 1L);
private ReadAuctionInChatRoomDto 조회용_경매2 = new ReadAuctionInChatRoomDto(2L, "경매2", 20_000, 1L);
protected ReadUserInChatRoomDto 판매자 = new ReadUserInChatRoomDto(1L, "판매자", "profileImage1.png", 5.0d, false);
private ReadUserInChatRoomDto 구매자1 = new ReadUserInChatRoomDto(2L, "구매자1", "profileImage2.png", 5.0d, false);
private ReadUserInChatRoomDto 구매자2 = new ReadUserInChatRoomDto(3L, "구매자2", "profileImage3.png", 5.0d, false);
private ReadAuctionInChatRoomDto 조회용_경매1 = new ReadAuctionInChatRoomDto(1L, "경매1", 10_000, "auctionImage1.png");
private ReadAuctionInChatRoomDto 조회용_경매2 = new ReadAuctionInChatRoomDto(2L, "경매2", 20_000, "auctionImage2.png");
protected ReadChatRoomWithLastMessageDto 조회용_채팅방1 = new ReadChatRoomWithLastMessageDto(1L, 조회용_경매1, 구매자1, new ReadLastMessageDto(1L, LocalDateTime.now(), 판매자, 구매자1, "메시지1"), 1L, true);
protected ReadChatRoomWithLastMessageDto 조회용_채팅방2 = new ReadChatRoomWithLastMessageDto(2L, 조회용_경매2, 구매자2, new ReadLastMessageDto(1L, LocalDateTime.now(), 판매자, 구매자2, "메시지2"), 1L, true);
protected CreateMessageRequest 메시지_생성_요청 = new CreateMessageRequest(1L, "메시지 내용");
Expand Down

0 comments on commit beebe84

Please sign in to comment.