X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FNewSoneHandlerTest.kt;h=acdcf2f5fcb83b549716991e5c876dd15d01dd94;hp=07749928b57db38d93eba08315157fc69e52dfe0;hb=ae15a32bcf71f56e4f5e7aff5e13a04ea1c88ad3;hpb=c0adc24e57980b042f8232a01ad3bed40b4b0942 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