🎨 Rename method to create replies for tests
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / notification / RemotePostReplyHandlerTest.kt
index 9c5361c..15baa01 100644 (file)
@@ -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<PostReply>("", "", 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>(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>(notification)))
        }