mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-06 00:18:36 +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 org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.PluginManager;
|
||||
@ -171,6 +172,11 @@ public class IslandResetCommandTest {
|
||||
members.add(temp);
|
||||
}
|
||||
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
|
||||
GameModeAddon addon1 = mock(GameModeAddon.class);
|
||||
|
Loading…
Reference in New Issue
Block a user