import net.pterodactylus.sone.web.notification.*
import org.hamcrest.MatcherAssert.*
import org.hamcrest.Matchers.*
+import org.junit.experimental.categories.*
import org.mockito.Mockito.*
import java.io.*
import java.util.concurrent.atomic.*
* Unit test for [SonePlugin].
*/
@Dirty
+@Category(NotParallel::class)
class SonePluginTest {
private var sonePlugin = SonePlugin { injector }
private class FirstStartListener(private val firstStartReceived: AtomicBoolean) {
@Subscribe
- fun firstStart(firstStart: FirstStart) {
+ fun firstStart(@Suppress("UNUSED_PARAMETER") firstStart: FirstStart) {
firstStartReceived.set(true)
}
}
private class ConfigNotReadListener(private val configNotReadReceiver: AtomicBoolean) {
@Subscribe
- fun configNotRead(configNotRead: ConfigNotRead) {
+ fun configNotRead(@Suppress("UNUSED_PARAMETER") configNotRead: ConfigNotRead) {
configNotReadReceiver.set(true)
}
}
private class StartupListener(private val startupReceived: () -> Unit) {
@Subscribe
- fun startup(startup: Startup) {
+ fun startup(@Suppress("UNUSED_PARAMETER") startup: Startup) {
startupReceived()
}
}
private class ShutdownListener(private val shutdownReceived: () -> Unit) {
@Subscribe
- fun shutdown(shutdown: Shutdown) {
+ fun shutdown(@Suppress("UNUSED_PARAMETER") shutdown: Shutdown) {
shutdownReceived()
}
}