mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-25 01:21:21 +01:00
Fix failing unit-test
This commit is contained in:
parent
50bc236bbc
commit
9088ea4b80
@ -89,11 +89,12 @@ public class IslandTest {
|
||||
when(iwm.getIslandDistance(any())).thenReturn(DISTANCE);
|
||||
|
||||
// Location
|
||||
//when(location.getWorld()).thenReturn(world);
|
||||
when(location.clone()).thenReturn(location);
|
||||
when(world.getName()).thenReturn("bskyblock_world");
|
||||
when(location.getWorld()).thenReturn(world);
|
||||
when(world.getEnvironment()).thenReturn(Environment.NORMAL);
|
||||
when(world.toString()).thenReturn(null);
|
||||
|
||||
// User
|
||||
when(user.getUniqueId()).thenReturn(uuid);
|
||||
|
||||
@ -421,7 +422,7 @@ public class IslandTest {
|
||||
*/
|
||||
@Test
|
||||
public void testGetWorld() {
|
||||
assertNull(i.getWorld());
|
||||
assertEquals(i.getWorld(), world);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user