✅ Improve test for not added notification
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 4 Jan 2020 15:30:54 +0000 (16:30 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 4 Jan 2020 15:30:54 +0000 (16:30 +0100)
src/test/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandlerTest.kt

index 0774992..acdcf2f 100644 (file)
@@ -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>(notification)))
        }
 
        @Test