Skip to content

Commit d3ae1fb

Browse files
committed
♻️ :: test문 변경
1 parent 86e983f commit d3ae1fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

notification-domain/src/test/kotlin/io/github/v1servicenotification/detail/DetailApiImplTest.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ class DetailApiImplTest {
7575

7676
detailApi.postGroupNotification(category.topic, content, threadId)
7777

78-
assertThat(detailSpi.findAllByUserId(userId).size).isEqualTo(1)
78+
assertThat(detailSpi.findAllByUserIdOrderBySentAtDesc(userId).size).isEqualTo(1)
7979

80-
detailSpi.findAllByUserId(userId)
80+
detailSpi.findAllByUserIdOrderBySentAtDesc(userId)
8181
.forEach {
8282
assertThat(it.title).isEqualTo(title)
8383
assertThat(it.content).isEqualTo(content)
@@ -110,7 +110,7 @@ class DetailApiImplTest {
110110

111111
detailApi.postGroupNotification(category.topic, content, threadId)
112112

113-
detailSpi.findAllByUserId(userId)
113+
detailSpi.findAllByUserIdOrderBySentAtDesc(userId)
114114
.forEach {
115115
assertThat(it.title).isEqualTo(title)
116116
assertThat(it.content).isEqualTo(content)
@@ -143,7 +143,7 @@ class DetailApiImplTest {
143143

144144
detailApi.postGroupNotification(category.topic, content, threadId)
145145

146-
detailSpi.findAllByUserId(userId)
146+
detailSpi.findAllByUserIdOrderBySentAtDesc(userId)
147147
.forEach {
148148
assertThat(it.title).isEqualTo(title)
149149
assertThat(it.content).isEqualTo(content)
@@ -181,7 +181,7 @@ class DetailApiImplTest {
181181

182182
detailApi.postNotification(userId, category.topic, content, threadId)
183183

184-
detailSpi.findAllByUserId(userId)
184+
detailSpi.findAllByUserIdOrderBySentAtDesc(userId)
185185
.forEach {
186186
assertThat(it.title).isEqualTo(title)
187187
assertThat(it.content).isEqualTo(content)

0 commit comments

Comments
 (0)