Test fixes

This commit is contained in:
tastybento 2020-06-28 09:42:36 -07:00
parent 854638be89
commit 631b664059

View File

@ -53,6 +53,7 @@ import world.bentobox.bentobox.database.DatabaseSetup;
import world.bentobox.bentobox.database.DatabaseSetup.DatabaseType; import world.bentobox.bentobox.database.DatabaseSetup.DatabaseType;
import world.bentobox.bentobox.database.objects.Island; import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.managers.IslandWorldManager; import world.bentobox.bentobox.managers.IslandWorldManager;
import world.bentobox.bentobox.managers.IslandsManager;
import world.bentobox.bentobox.managers.PlayersManager; import world.bentobox.bentobox.managers.PlayersManager;
import world.bentobox.level.calculators.Pipeliner; import world.bentobox.level.calculators.Pipeliner;
import world.bentobox.level.calculators.Results; import world.bentobox.level.calculators.Results;
@ -104,6 +105,8 @@ public class LevelsManagerTest {
private PluginManager pim; private PluginManager pim;
@Mock @Mock
private LevelsData levelsData; private LevelsData levelsData;
@Mock
private IslandsManager im;
@ -145,6 +148,7 @@ public class LevelsManagerTest {
when(pipeliner.addIsland(any())).thenReturn(cf); when(pipeliner.addIsland(any())).thenReturn(cf);
// Island // Island
when(addon.getIslands()).thenReturn(im);
uuid = UUID.randomUUID(); uuid = UUID.randomUUID();
ImmutableSet<UUID> iset = ImmutableSet.of(uuid); ImmutableSet<UUID> iset = ImmutableSet.of(uuid);
when(island.getMemberSet()).thenReturn(iset); when(island.getMemberSet()).thenReturn(iset);