From ae15a32bcf71f56e4f5e7aff5e13a04ea1c88ad3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 4 Jan 2020 16:30:54 +0100 Subject: [PATCH] =?utf8?q?=E2=9C=85=20Improve=20test=20for=20not=20added?= =?utf8?q?=20notification?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../net/pterodactylus/sone/web/notification/NewSoneHandlerTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4