Skip to content

Commit 63a1923

Browse files
authored
Merge pull request #386 from prgrms-web-devcourse-final-project/develop
Develop
2 parents 481a91f + abf6b3f commit 63a1923

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

back/src/main/java/com/back/domain/post/comment/entity/PostComment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public Boolean isAuthor( Member member) {
3434
}
3535

3636
public String getAuthorName() {
37-
return member.getName();
37+
return member.getNickname();
3838
}
3939

4040
public Long getAuthorId() {

back/src/test/java/com/back/domain/post/comment/entity/PostCommentTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void getAuthorName_success() {
231231
String authorName = comment.getAuthorName();
232232

233233
// then
234-
assertThat(authorName).isEqualTo("Author Name");
234+
assertThat(authorName).isEqualTo("Test Nickname");
235235
}
236236
}
237237

@@ -315,4 +315,4 @@ private PostComment createDefaultComment(Member member) {
315315
.role(member.getRole().name())
316316
.build();
317317
}
318-
}
318+
}

0 commit comments

Comments
 (0)