val eventBus = it.getInstance(EventBus::class.java)
eventBus.register(FirstStartListener(firstStartReceived))
}
- sonePlugin.runPlugin(pluginRespirator)
assertThat(firstStartReceived.get(), equalTo(true))
}
val eventBus = it.getInstance(EventBus::class.java)
eventBus.register(FirstStartListener(firstStartReceived))
}
- sonePlugin.runPlugin(pluginRespirator)
assertThat(firstStartReceived.get(), equalTo(false))
}
}
val eventBus = it.getInstance(EventBus::class.java)
eventBus.register(ConfigNotReadListener(configNotReadReceived))
}
- sonePlugin.runPlugin(pluginRespirator)
assertThat(configNotReadReceived.get(), equalTo(true))
}
}
val eventBus = it.getInstance(EventBus::class.java)
eventBus.register(ConfigNotReadListener(configNotReadReceived))
}
- sonePlugin.runPlugin(pluginRespirator)
assertThat(configNotReadReceived.get(), equalTo(false))
}
val eventBus = it.getInstance(EventBus::class.java)
eventBus.register(ConfigNotReadListener(configNotReadReceived))
}
- sonePlugin.runPlugin(pluginRespirator)
assertThat(configNotReadReceived.get(), equalTo(false))
}
}
val eventBus = it.getInstance(EventBus::class.java)
eventBus.register(StartupListener { startupReceived.set(true) })
}
- sonePlugin.runPlugin(pluginRespirator)
assertThat(startupReceived.get(), equalTo(true))
}