use of io.github.wysohn.triggerreactor.bukkit.main.BukkitTriggerReactorCore in project TriggerReactor by wysohn.
the class AbstractTestExecutors method testServer.
@Test
public void testServer() throws Exception {
BukkitTriggerReactorCore plugin = mock(BukkitTriggerReactorCore.class);
AbstractJavaPlugin.BungeeCordHelper helper = mock(AbstractJavaPlugin.BungeeCordHelper.class);
Player player = mock(Player.class);
when(plugin.getBungeeHelper()).thenReturn(helper);
new ExecutorTest(engine, "SERVER").addVariable("player", player).addVariable("plugin", plugin).withArgs("someServer").test();
verify(helper).sendToServer(player, "someServer");
}
Aggregations