X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2FNewElementsTest.kt;h=ccda1c7850f2414f9279d8189d1ced1b950cb8f0;hb=fda2239d4bd30e90a397d4cc3726250270876856;hp=34dfe6614a141e7b5fb1d8c6472658946ae37f7e;hpb=4965986ea98879fbe0a2ca9bcf8dbeeeaebaa9ef;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/web/NewElementsTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/NewElementsTest.kt index 34dfe66..ccda1c7 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/NewElementsTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/NewElementsTest.kt @@ -64,24 +64,24 @@ class NewElementsTest { @Test fun `new posts include new and local posts`() { - assertThat(newElements.newPosts, containsInAnyOrder(post1, post2)) + assertThat(newElements.newPosts(), containsInAnyOrder(post1, post2)) } @Test fun `new posts are filtered`() { val newElements = NewElements(newPostNotification, newReplyNotification, localPostNotification, localReplyNotification, matchThisPost(post2), showAllReplies) - assertThat(newElements.newPosts, contains(post2)) + assertThat(newElements.newPosts(), contains(post2)) } @Test fun `new replies include new and local replies`() { - assertThat(newElements.newReplies, containsInAnyOrder(reply1, reply2)) + assertThat(newElements.newReplies(), containsInAnyOrder(reply1, reply2)) } @Test fun `new replies are filtered`() { val newElements = NewElements(newPostNotification, newReplyNotification, localPostNotification, localReplyNotification, showAllPosts, matchThisReply(reply2)) - assertThat(newElements.newReplies, containsInAnyOrder(reply2)) + assertThat(newElements.newReplies(), containsInAnyOrder(reply2)) } }