projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
📄 Update year in file headers
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
notification
/
SoneLockedHandlerTest.kt
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
..
4003dbb
100644
(file)
--- a/
src/test/kotlin/net/pterodactylus/sone/web/notification/SoneLockedHandlerTest.kt
+++ b/
src/test/kotlin/net/pterodactylus/sone/web/notification/SoneLockedHandlerTest.kt
@@
-1,5
+1,5
@@
/**
/**
- * Sone - SoneLockedHandlerTest.kt - Copyright © 2019 David ‘Bombe’ Roden
+ * Sone - SoneLockedHandlerTest.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
*
* 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
@@
-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.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.*
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))
@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<Any>(notification))
}
assertThat(notificationManager.notifications, contains<Any>(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))
@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())
}
eventBus.post(SoneUnlockedEvent(sone))
assertThat(notification.elements, emptyIterable())
}