.map { PostReplyRemovedEvent(it) }
.forEach(eventBus::post)
}
+ database.storeSone(sone)
sone.options = storedSone.options
sone.isKnown = storedSone.isKnown
sone.status = if (sone.time != 0L) SoneStatus.idle else SoneStatus.unknown
}
@Test
+ fun `updated sone processor stores sone in database`() {
+ updatedSoneProcessor.updateSone(newSone)
+ verify(database).storeSone(newSone)
+ }
+
+ @Test
fun `default updated Sone processor can be created by dependency injection`() {
assertThat(baseInjector.createChildInjector(
Database::class.isProvidedByMock()