Skip to content

Commit 1031b8f

Browse files
committed
test: 알림 DTO 변경에 따른 NotificationControllerTest 수정
1 parent 13526b0 commit 1031b8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/back/domain/notification/controller/NotificationControllerTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ void getNotifications_noCursor() throws Exception {
129129
.type(NotificationType.COMMENT)
130130
.postId(55L)
131131
.postTitle("새 댓글")
132+
.postCategoryName("공지")
133+
.postThumbnailUrl("https://example.com/thumb.png")
134+
.message("새 댓글이 달렸습니다.")
132135
.read(false)
133136
.createdAt(LocalDateTime.of(2025, 1, 2, 12, 0))
134137
.build();
@@ -154,6 +157,9 @@ void getNotifications_noCursor() throws Exception {
154157
.andExpect(jsonPath("$.code").value(200))
155158
.andExpect(jsonPath("$.message").value("success"))
156159
.andExpect(jsonPath("$.data.items[0].id").value(101))
160+
.andExpect(jsonPath("$.data.items[0].postCategoryName").value("공지"))
161+
.andExpect(jsonPath("$.data.items[0].postThumbnailUrl").value("https://example.com/thumb.png"))
162+
.andExpect(jsonPath("$.data.items[0].message").value("새 댓글이 달렸습니다."))
157163
.andExpect(jsonPath("$.data.hasNext").value(false))
158164
.andExpect(jsonPath("$.data.nextCreatedAt").doesNotExist());
159165

0 commit comments

Comments
 (0)