Skip to content

Commit

Permalink
♻️ :: test문 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
lilseongwon committed May 9, 2023
1 parent 86e983f commit d3ae1fb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ class DetailApiImplTest {

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

assertThat(detailSpi.findAllByUserId(userId).size).isEqualTo(1)
assertThat(detailSpi.findAllByUserIdOrderBySentAtDesc(userId).size).isEqualTo(1)

detailSpi.findAllByUserId(userId)
detailSpi.findAllByUserIdOrderBySentAtDesc(userId)
.forEach {
assertThat(it.title).isEqualTo(title)
assertThat(it.content).isEqualTo(content)
Expand Down Expand Up @@ -110,7 +110,7 @@ class DetailApiImplTest {

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

detailSpi.findAllByUserId(userId)
detailSpi.findAllByUserIdOrderBySentAtDesc(userId)
.forEach {
assertThat(it.title).isEqualTo(title)
assertThat(it.content).isEqualTo(content)
Expand Down Expand Up @@ -143,7 +143,7 @@ class DetailApiImplTest {

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

detailSpi.findAllByUserId(userId)
detailSpi.findAllByUserIdOrderBySentAtDesc(userId)
.forEach {
assertThat(it.title).isEqualTo(title)
assertThat(it.content).isEqualTo(content)
Expand Down Expand Up @@ -181,7 +181,7 @@ class DetailApiImplTest {

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

detailSpi.findAllByUserId(userId)
detailSpi.findAllByUserIdOrderBySentAtDesc(userId)
.forEach {
assertThat(it.title).isEqualTo(title)
assertThat(it.content).isEqualTo(content)
Expand Down

0 comments on commit d3ae1fb

Please sign in to comment.