Fix tests

This commit is contained in:
Owain van Brakel
2019-07-14 13:47:26 +02:00
parent 8b647041f4
commit 19865173d8
17 changed files with 30 additions and 34 deletions

View File

@@ -129,10 +129,6 @@ public class PluginManagerTest
pluginManager.loadCorePlugins();
plugins = pluginManager.getPlugins();
// Check that the plugins register with the eventbus without errors
EventBus eventBus = new EventBus();
plugins.forEach(eventBus::register);
expected = pluginClasses.stream()
.map(cl -> (PluginDescriptor) cl.getAnnotation(PluginDescriptor.class))
.filter(Objects::nonNull)