mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-08 09:27:38 +01:00
Fixes IslandResetCommandTest failure
This commit is contained in:
parent
aad7f1c482
commit
f7a3da1502
@ -17,6 +17,7 @@ import java.util.HashMap;
|
|||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
@ -171,6 +172,11 @@ public class IslandResetCommandTest {
|
|||||||
members.add(temp);
|
members.add(temp);
|
||||||
}
|
}
|
||||||
when(island.getMemberSet()).thenReturn(members.build());
|
when(island.getMemberSet()).thenReturn(members.build());
|
||||||
|
Location location = mock(Location.class);
|
||||||
|
when(location.clone()).thenReturn(location);
|
||||||
|
when(island.getCenter()).thenReturn(location);
|
||||||
|
when(island.getHistory()).thenReturn(Collections.emptyList());
|
||||||
|
when(island.getSpawnPoint()).thenReturn(Collections.emptyMap());
|
||||||
|
|
||||||
// Addon
|
// Addon
|
||||||
GameModeAddon addon1 = mock(GameModeAddon.class);
|
GameModeAddon addon1 = mock(GameModeAddon.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user