mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-25 09:31:46 +01:00
Add and fix tests for end gateway and portal. (#2044)
This commit is contained in:
parent
a22ce33175
commit
d50208c0e1
@ -420,7 +420,7 @@ public class IslandsManagerTest {
|
||||
when(ground.getType()).thenReturn(Material.STONE);
|
||||
when(space1.getType()).thenReturn(Material.AIR);
|
||||
when(space2.getType()).thenReturn(Material.END_PORTAL);
|
||||
assertTrue(im.isSafeLocation(location));
|
||||
assertFalse(im.isSafeLocation(location));
|
||||
when(ground.getType()).thenReturn(Material.STONE);
|
||||
when(space1.getType()).thenReturn(Material.NETHER_PORTAL);
|
||||
when(space2.getType()).thenReturn(Material.AIR);
|
||||
@ -428,7 +428,7 @@ public class IslandsManagerTest {
|
||||
when(ground.getType()).thenReturn(Material.STONE);
|
||||
when(space1.getType()).thenReturn(Material.END_PORTAL);
|
||||
when(space2.getType()).thenReturn(Material.AIR);
|
||||
assertTrue(im.isSafeLocation(location));
|
||||
assertFalse(im.isSafeLocation(location));
|
||||
when(ground.getType()).thenReturn(Material.NETHER_PORTAL);
|
||||
when(space1.getType()).thenReturn(Material.AIR);
|
||||
when(space2.getType()).thenReturn(Material.AIR);
|
||||
@ -437,6 +437,19 @@ public class IslandsManagerTest {
|
||||
when(space1.getType()).thenReturn(Material.AIR);
|
||||
when(space2.getType()).thenReturn(Material.AIR);
|
||||
assertFalse(im.isSafeLocation(location));
|
||||
when(ground.getType()).thenReturn(Material.END_GATEWAY);
|
||||
when(space1.getType()).thenReturn(Material.AIR);
|
||||
when(space2.getType()).thenReturn(Material.AIR);
|
||||
assertFalse(im.isSafeLocation(location));
|
||||
when(ground.getType()).thenReturn(Material.STONE);
|
||||
when(space1.getType()).thenReturn(Material.END_GATEWAY);
|
||||
when(space2.getType()).thenReturn(Material.AIR);
|
||||
assertFalse(im.isSafeLocation(location));
|
||||
when(ground.getType()).thenReturn(Material.STONE);
|
||||
when(space1.getType()).thenReturn(Material.AIR);
|
||||
when(space2.getType()).thenReturn(Material.END_GATEWAY);
|
||||
assertFalse(im.isSafeLocation(location));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user