mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-17 04:41:40 +01:00
Fix broken tests.
This commit is contained in:
parent
609322d582
commit
9220f9652b
@ -154,6 +154,9 @@ public class AdminTeleportCommandTest {
|
||||
Vector vector = mock(Vector.class);
|
||||
when(vector.toLocation(any())).thenReturn(location);
|
||||
when(location.toVector()).thenReturn(vector);
|
||||
when(location.getWorld()).thenReturn(world);
|
||||
when(spawnPoint.getWorld()).thenReturn(world);
|
||||
when(world.getMaxHeight()).thenReturn(255);
|
||||
when(im.getIslandLocation(any(), any())).thenReturn(location);
|
||||
// We do no actually want to teleport in this test, so return no island
|
||||
Optional<Island> nothing = Optional.empty();
|
||||
|
Loading…
Reference in New Issue
Block a user