X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fnotification%2FSoneLockedHandlerTest.kt;h=f7c185ab51fe50b86ff8fe68c66cb89d98dd1cfa;hp=86e456d159d7c45ff23accab6f262042f834bbe8;hb=fd11fc210ae9bf29b1797301ad456b55984c844c;hpb=0d703d052668e11a3fb419995568c8c9fcf70c8d diff --git a/src/test/kotlin/net/pterodactylus/sone/web/notification/SoneLockedHandlerTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/notification/SoneLockedHandlerTest.kt index 86e456d..f7c185a 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/notification/SoneLockedHandlerTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/notification/SoneLockedHandlerTest.kt @@ -22,6 +22,7 @@ import net.pterodactylus.sone.core.event.* import net.pterodactylus.sone.data.* import net.pterodactylus.sone.data.impl.* import net.pterodactylus.sone.notify.* +import net.pterodactylus.sone.utils.* import net.pterodactylus.util.notify.* import net.pterodactylus.util.template.* import org.hamcrest.MatcherAssert.* @@ -62,7 +63,7 @@ class SoneLockedHandlerTest { @Test fun `notification is added to notification manager from command`() { eventBus.post(SoneLockedEvent(sone)) - executor.scheduleds.single().command.run() + executor.scheduleds.single().command() assertThat(notificationManager.notifications, contains(notification)) } @@ -91,7 +92,7 @@ class SoneLockedHandlerTest { @Test fun `unlocking sone after showing the notification will remove the sone from the notification`() { eventBus.post(SoneLockedEvent(sone)) - executor.scheduleds.single().command.run() + executor.scheduleds.single().command() eventBus.post(SoneUnlockedEvent(sone)) assertThat(notification.elements, emptyIterable()) }