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=e099974d76a4e440fe41da63b806b3796b87142b;hp=07749928b57db38d93eba08315157fc69e52dfe0;hb=438378deab1514f0f608d975ef65f5b7aea44ccb;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..e099974 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandlerTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/notification/NewSoneHandlerTest.kt @@ -1,5 +1,5 @@ /** - * Sone - NewSoneHandlerTest.kt - Copyright © 2019 David ‘Bombe’ Roden + * Sone - NewSoneHandlerTest.kt - Copyright © 2019–2020 David ‘Bombe’ Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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