Skip to content

Commit

Permalink
Fix IslandSethomeCommand test
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Sep 25, 2021
1 parent bc737d4 commit 8b47483
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public class IslandSethomeCommandTest {
private Island island;
@Mock
private IslandWorldManager iwm;
@Mock
private WorldSettings ws;

/**
* @throws java.lang.Exception
Expand Down Expand Up @@ -128,6 +130,8 @@ public void setUp() throws Exception {
// 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);
Expand Down

0 comments on commit 8b47483

Please sign in to comment.