+ assertThat(loaders.requestedTemplatePaths, hasItem("/templates/notify/soneLockedOnStartupNotification.html"))
+ }
+
+ @Test
+ fun `notification handler registers handler for new sone events`() {
+ handler.start()
+ assertThat(eventBus.registeredObjects, hasItem<Any>(matches { it.javaClass == NewSoneHandler::class.java }))
+ }
+
+ @Test
+ fun `notification handler loads new sone notification template`() {
+ handler.start()
+ assertThat(loaders.requestedTemplatePaths, hasItem("/templates/notify/newSoneNotification.html"))