mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-10-01 08:07:34 +02: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);
|
Vector vector = mock(Vector.class);
|
||||||
when(vector.toLocation(any())).thenReturn(location);
|
when(vector.toLocation(any())).thenReturn(location);
|
||||||
when(location.toVector()).thenReturn(vector);
|
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);
|
when(im.getIslandLocation(any(), any())).thenReturn(location);
|
||||||
// We do no actually want to teleport in this test, so return no island
|
// We do no actually want to teleport in this test, so return no island
|
||||||
Optional<Island> nothing = Optional.empty();
|
Optional<Island> nothing = Optional.empty();
|
||||||
|
Loading…
Reference in New Issue
Block a user