mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Fix IslandSethomeCommand test
This commit is contained in:
parent
bc737d4d66
commit
8b474833e1
@ -62,6 +62,8 @@ public class IslandSethomeCommandTest {
|
|||||||
private Island island;
|
private Island island;
|
||||||
@Mock
|
@Mock
|
||||||
private IslandWorldManager iwm;
|
private IslandWorldManager iwm;
|
||||||
|
@Mock
|
||||||
|
private WorldSettings ws;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @throws java.lang.Exception
|
* @throws java.lang.Exception
|
||||||
@ -128,6 +130,8 @@ public class IslandSethomeCommandTest {
|
|||||||
// Number of homes default
|
// Number of homes default
|
||||||
when(iwm.getMaxHomes(any())).thenReturn(3);
|
when(iwm.getMaxHomes(any())).thenReturn(3);
|
||||||
when(plugin.getIWM()).thenReturn(iwm);
|
when(plugin.getIWM()).thenReturn(iwm);
|
||||||
|
// World settings
|
||||||
|
when(iwm.getWorldSettings(any(World.class))).thenReturn(ws);
|
||||||
|
|
||||||
// Number of homes
|
// Number of homes
|
||||||
PowerMockito.mockStatic(Util.class);
|
PowerMockito.mockStatic(Util.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user