mirror of
https://github.com/BentoBoxWorld/Level.git
synced 2024-11-27 20:46:19 +01:00
Test fixes
This commit is contained in:
parent
854638be89
commit
631b664059
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user