@@ -75,9 +75,9 @@ class DetailApiImplTest {
75
75
76
76
detailApi.postGroupNotification(category.topic, content, threadId)
77
77
78
- assertThat(detailSpi.findAllByUserId (userId).size).isEqualTo(1 )
78
+ assertThat(detailSpi.findAllByUserIdOrderBySentAtDesc (userId).size).isEqualTo(1 )
79
79
80
- detailSpi.findAllByUserId (userId)
80
+ detailSpi.findAllByUserIdOrderBySentAtDesc (userId)
81
81
.forEach {
82
82
assertThat(it.title).isEqualTo(title)
83
83
assertThat(it.content).isEqualTo(content)
@@ -110,7 +110,7 @@ class DetailApiImplTest {
110
110
111
111
detailApi.postGroupNotification(category.topic, content, threadId)
112
112
113
- detailSpi.findAllByUserId (userId)
113
+ detailSpi.findAllByUserIdOrderBySentAtDesc (userId)
114
114
.forEach {
115
115
assertThat(it.title).isEqualTo(title)
116
116
assertThat(it.content).isEqualTo(content)
@@ -143,7 +143,7 @@ class DetailApiImplTest {
143
143
144
144
detailApi.postGroupNotification(category.topic, content, threadId)
145
145
146
- detailSpi.findAllByUserId (userId)
146
+ detailSpi.findAllByUserIdOrderBySentAtDesc (userId)
147
147
.forEach {
148
148
assertThat(it.title).isEqualTo(title)
149
149
assertThat(it.content).isEqualTo(content)
@@ -181,7 +181,7 @@ class DetailApiImplTest {
181
181
182
182
detailApi.postNotification(userId, category.topic, content, threadId)
183
183
184
- detailSpi.findAllByUserId (userId)
184
+ detailSpi.findAllByUserIdOrderBySentAtDesc (userId)
185
185
.forEach {
186
186
assertThat(it.title).isEqualTo(title)
187
187
assertThat(it.content).isEqualTo(content)
0 commit comments