Fixes IslandResetCommandTest failure

This commit is contained in:
tastybento 2020-03-04 18:47:37 -08:00
parent aad7f1c482
commit f7a3da1502

View File

@ -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);