X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FNotificationHandlerModuleTest.kt;h=0a79cfe39f8b9264271ce06b5310166e67518b37;hb=ccd77b5da1130109a8676ac691e486774fff30cd;hp=f22e23a691f9d7763c6db539261347be1349eaf6;hpb=0f8b61908fb55c0ad2176708f2ea1775927bbd9b;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModuleTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModuleTest.kt index f22e23a..0a79cfe 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModuleTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/notification/NotificationHandlerModuleTest.kt @@ -205,7 +205,7 @@ class NotificationHandlerModuleTest { fun `new-remote-post-reply notification has correct key and template`() { loaders.templates += "/templates/notify/newReplyNotification.html" to "<% replies>".asTemplate() val notification = injector.getInstance>(named("newRemotePostReply")) - val postReplies = listOf(emptyPostReply(), emptyPostReply()) + val postReplies = listOf(createPostReply(), createPostReply()) postReplies.forEach(notification::add) assertThat(notification.render(), equalTo(postReplies.toString())) } @@ -282,7 +282,7 @@ class NotificationHandlerModuleTest { fun `local-reply notification has correct key and template`() { loaders.templates += "/templates/notify/newReplyNotification.html" to "<% replies>".asTemplate() val notification = injector.getInstance>(named("localReply")) - val replies = listOf(emptyPostReply("reply1"), emptyPostReply("reply2")) + val replies = listOf(createPostReply("reply1"), createPostReply("reply2")) replies.forEach(notification::add) assertThat(notification.render(), equalTo(replies.toString())) }