✨ Add ticker shutdown wrapper
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / main / SonePluginTest.kt
index b846522..e658fe2 100644 (file)
@@ -100,6 +100,12 @@ class SonePluginTest {
                assertThat(getInjected(NotificationHandler::class.java), notNullValue())
        }
 
+       @Test
+       fun `ticker shutdown is being requested`() {
+               sonePlugin.runPlugin(pluginRespirator)
+               assertThat(getInjected(TickerShutdown::class.java), notNullValue())
+       }
+
        private class FirstStartListener(private val firstStartReceived: AtomicBoolean) {
                @Subscribe
                fun firstStart(firstStart: FirstStart) {