use of org.spongepowered.common.event.SpongeEventManager in project SpongeForge by SpongePowered.
the class SpongeModEventManagerTest method init.
@Before
public void init() throws Exception {
PluginManager manager = Mockito.mock(PluginManager.class);
this.eventManager = new SpongeEventManager(manager);
this.plugin = new Object();
this.container = Mockito.mock(PluginContainer.class);
Mockito.when(manager.fromInstance(plugin)).thenReturn(Optional.of(this.container));
this.resetStatics();
}
Aggregations