-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from jisung-in/feature/105-my-talkroom-find-api
[Feature] 나의 토크방 모아보기 API 구현
- Loading branch information
Showing
16 changed files
with
713 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/main/java/com/jisungin/domain/talkroomlike/repository/TalkRoomLikeRepositoryCustom.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.jisungin.domain.talkroomlike.repository; | ||
|
||
public interface TalkRoomLikeRepositoryCustom { | ||
|
||
boolean existsTalkRoomLike(Long talkRoomId, Long userId); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,7 @@ void writeComment() { | |
// then | ||
assertThat(response) | ||
.extracting("content", "userName", "imageUrls") | ||
.contains("의견 남기기", "[email protected]", List.of()); | ||
.contains("의견 남기기", "[email protected]", List.of("")); | ||
} | ||
|
||
@Test | ||
|
@@ -514,6 +514,7 @@ void findAllComments() throws Exception { | |
.talkRoom(talkRoom) | ||
.user(user) | ||
.content("의견 " + i) | ||
.registeredDateTime(LocalDateTime.now()) | ||
.build()) | ||
.collect(Collectors.toList()); | ||
|
||
|
@@ -553,6 +554,7 @@ void findAllCommentsWithImage() throws Exception { | |
.talkRoom(talkRoom) | ||
.user(user) | ||
.content("의견 " + i) | ||
.registeredDateTime(LocalDateTime.now()) | ||
.build()) | ||
.toList(); | ||
|
||
|
@@ -601,6 +603,7 @@ void findAllCommentsWithLike() throws Exception { | |
.talkRoom(talkRoom) | ||
.user(user) | ||
.content("의견 " + i) | ||
.registeredDateTime(LocalDateTime.now()) | ||
.build()) | ||
.collect(Collectors.toList()); | ||
|
||
|
@@ -652,6 +655,7 @@ private static TalkRoom createTalkRoom(Book book, User user) { | |
.title("토크방") | ||
.content("내용") | ||
.user(user) | ||
.registeredDateTime(LocalDateTime.now()) | ||
.build(); | ||
} | ||
|
||
|
Oops, something went wrong.