🐛 Remove useless double plugin start in test
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 12 Dec 2019 19:18:04 +0000 (20:18 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 12 Dec 2019 19:18:04 +0000 (20:18 +0100)
src/test/kotlin/net/pterodactylus/sone/main/SonePluginTest.kt

index b40df75..c3f1cd7 100644 (file)
@@ -115,7 +115,6 @@ class SonePluginTest {
                        val eventBus = it.getInstance(EventBus::class.java)
                        eventBus.register(FirstStartListener(firstStartReceived))
                }
-               sonePlugin.runPlugin(pluginRespirator)
                assertThat(firstStartReceived.get(), equalTo(true))
        }
 
@@ -128,7 +127,6 @@ class SonePluginTest {
                                val eventBus = it.getInstance(EventBus::class.java)
                                eventBus.register(FirstStartListener(firstStartReceived))
                        }
-                       sonePlugin.runPlugin(pluginRespirator)
                        assertThat(firstStartReceived.get(), equalTo(false))
                }
        }
@@ -149,7 +147,6 @@ class SonePluginTest {
                                val eventBus = it.getInstance(EventBus::class.java)
                                eventBus.register(ConfigNotReadListener(configNotReadReceived))
                        }
-                       sonePlugin.runPlugin(pluginRespirator)
                        assertThat(configNotReadReceived.get(), equalTo(true))
                }
        }
@@ -162,7 +159,6 @@ class SonePluginTest {
                        val eventBus = it.getInstance(EventBus::class.java)
                        eventBus.register(ConfigNotReadListener(configNotReadReceived))
                }
-               sonePlugin.runPlugin(pluginRespirator)
                assertThat(configNotReadReceived.get(), equalTo(false))
        }
 
@@ -175,7 +171,6 @@ class SonePluginTest {
                                val eventBus = it.getInstance(EventBus::class.java)
                                eventBus.register(ConfigNotReadListener(configNotReadReceived))
                        }
-                       sonePlugin.runPlugin(pluginRespirator)
                        assertThat(configNotReadReceived.get(), equalTo(false))
                }
        }
@@ -194,7 +189,6 @@ class SonePluginTest {
                        val eventBus = it.getInstance(EventBus::class.java)
                        eventBus.register(StartupListener { startupReceived.set(true) })
                }
-               sonePlugin.runPlugin(pluginRespirator)
                assertThat(startupReceived.get(), equalTo(true))
        }