mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-24 21:02:48 +02:00
Fix test for clearArea
This commit is contained in:
parent
78b10cb7bf
commit
86af7b568c
@ -265,16 +265,21 @@ public class IslandsManagerTest {
|
|||||||
// Monsters and animals
|
// Monsters and animals
|
||||||
when(zombie.getLocation()).thenReturn(location);
|
when(zombie.getLocation()).thenReturn(location);
|
||||||
when(zombie.getType()).thenReturn(EntityType.ZOMBIE);
|
when(zombie.getType()).thenReturn(EntityType.ZOMBIE);
|
||||||
|
when(zombie.getRemoveWhenFarAway()).thenReturn(true);
|
||||||
when(slime.getLocation()).thenReturn(location);
|
when(slime.getLocation()).thenReturn(location);
|
||||||
when(slime.getType()).thenReturn(EntityType.SLIME);
|
when(slime.getType()).thenReturn(EntityType.SLIME);
|
||||||
|
when(slime.getRemoveWhenFarAway()).thenReturn(true);
|
||||||
when(cow.getLocation()).thenReturn(location);
|
when(cow.getLocation()).thenReturn(location);
|
||||||
when(cow.getType()).thenReturn(EntityType.COW);
|
when(cow.getType()).thenReturn(EntityType.COW);
|
||||||
when(wither.getType()).thenReturn(EntityType.WITHER);
|
when(wither.getType()).thenReturn(EntityType.WITHER);
|
||||||
|
when(wither.getRemoveWhenFarAway()).thenReturn(true);
|
||||||
when(creeper.getType()).thenReturn(EntityType.CREEPER);
|
when(creeper.getType()).thenReturn(EntityType.CREEPER);
|
||||||
|
when(creeper.getRemoveWhenFarAway()).thenReturn(true);
|
||||||
when(pufferfish.getType()).thenReturn(EntityType.PUFFERFISH);
|
when(pufferfish.getType()).thenReturn(EntityType.PUFFERFISH);
|
||||||
// Named monster
|
// Named monster
|
||||||
when(skelly.getType()).thenReturn(EntityType.SKELETON);
|
when(skelly.getType()).thenReturn(EntityType.SKELETON);
|
||||||
when(skelly.getCustomName()).thenReturn("Skelly");
|
when(skelly.getCustomName()).thenReturn("Skelly");
|
||||||
|
when(skelly.getRemoveWhenFarAway()).thenReturn(true);
|
||||||
|
|
||||||
Collection<Entity> collection = new ArrayList<>();
|
Collection<Entity> collection = new ArrayList<>();
|
||||||
collection.add(player);
|
collection.add(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user