From: David ‘Bombe’ Roden Date: Sat, 4 Jan 2020 15:30:54 +0000 (+0100) Subject: ✅ Improve test for not added notification X-Git-Tag: v81^2~5^2~19 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=ae15a32bcf71f56e4f5e7aff5e13a04ea1c88ad3 ✅ Improve test for not added notification --- diff --git a/src/test/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandlerTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandlerTest.kt index 0774992..acdcf2f 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandlerTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandlerTest.kt @@ -56,7 +56,7 @@ class NewSoneHandlerTest { fun `handler does not add notification on new sone event if first-start notification is present`() { notificationManager.firstStart() eventBus.post(NewSoneFoundEvent(sone)) - assertThat(notificationManager.notifications.single().id, equalTo("first-start-notification")) + assertThat(notificationManager.notifications, not(contains(notification))) } @Test