/**
- * Sone - MarkPostKnownDuringFirstStartHandlerTest.kt - Copyright © 2019 David ‘Bombe’ Roden
+ * Sone - MarkPostKnownDuringFirstStartHandlerTest.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
import net.pterodactylus.util.notify.*
import org.hamcrest.MatcherAssert.*
import org.hamcrest.Matchers.*
-import java.io.*
-import java.util.function.Consumer
+import java.util.function.*
import kotlin.test.*
/**
@Test
fun `new post is marked as known during first start`() {
- notificationManager.addNotification(object : AbstractNotification("first-start-notification") {
- override fun render(writer: Writer?) = Unit
- })
+ notificationManager.firstStart()
eventBus.post(NewPostFoundEvent(post))
assertThat(markedPosts, contains(post))
}