org.bukkit.inventory.ItemFactory Java Examples

The following examples show how to use org.bukkit.inventory.ItemFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ChallengeLogicTest.java    From uSkyBlock with GNU General Public License v3.0 5 votes vote down vote up
private static Server createServerMock() {
    Server serverMock = mock(Server.class);
    ItemFactory itemFactoryMock = mock(ItemFactory.class);
    when(serverMock.getItemFactory()).thenReturn(itemFactoryMock);
    PluginManager pluginManagerMock = mock(PluginManager.class);
    when(serverMock.getPluginManager()).thenReturn(pluginManagerMock);
    return serverMock;
}