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