Skip to content

Commit 0a99d88

Browse files
committed
feature(search): community 게시글 fixture 추가
1 parent 27994bb commit 0a99d88

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/com/somemore/common/fixture/CommunityBoardFixture.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,12 @@ public static CommunityBoard createCommunityBoard(String title, UUID writerId) {
3939
.writerId(writerId)
4040
.build();
4141
}
42+
public static CommunityBoard createCommunityBoard(String title, String content, UUID writerId) {
43+
return CommunityBoard.builder()
44+
.title(title)
45+
.content(content)
46+
.imgUrl(IMG_URL)
47+
.writerId(writerId)
48+
.build();
49+
}
4250
}

0 commit comments

Comments
 (0)