X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FRemotePostReplyHandlerTest.kt;h=15baa012ea5a6376a37e47ea7aa1872fbd989551;hb=5076d8379e6413189273defd4f01f241b4a6a57e;hp=9c5361caef268a3b3a64dab6d5d3022ae42dd296;hpb=b5848fd116890f2b9434f169a16d203f24bfa94e;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/web/notification/RemotePostReplyHandlerTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/notification/RemotePostReplyHandlerTest.kt index 9c5361c..15baa01 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/notification/RemotePostReplyHandlerTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/notification/RemotePostReplyHandlerTest.kt @@ -1,5 +1,5 @@ /** - * Sone - RemotePostReplyHandler.kt - Copyright © 2020 David ‘Bombe’ Roden + * Sone - RemotePostReplyHandlerTest.kt - Copyright © 2020 David ‘Bombe’ Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,7 +34,7 @@ class RemotePostReplyHandlerTest { private val notification = ListNotification("", "", Template()) private val notificationHandlerTester = NotificationHandlerTester { RemotePostReplyHandler(it, notification) } - private val postReply = emptyPostReply() + private val postReply = createPostReply() @Test fun `reply is added to notification on new reply`() { @@ -64,14 +64,14 @@ class RemotePostReplyHandlerTest { @Test fun `reply is not added to notification on new local reply`() { - val postReply = emptyPostReply(sone = localSone1) + val postReply = createPostReply(sone = localSone1) notificationHandlerTester.sendEvent(NewPostReplyFoundEvent(postReply)) assertThat(notification.elements, not(hasItem(postReply))) } @Test fun `notification is not added to manager on new local reply`() { - val postReply = emptyPostReply(sone = localSone1) + val postReply = createPostReply(sone = localSone1) notificationHandlerTester.sendEvent(NewPostReplyFoundEvent(postReply)) assertThat(notificationHandlerTester.notifications, not(hasItem(notification))) }