mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-16 12:31:59 +01:00
Fixed tests for entity purger changes.
This commit is contained in:
parent
bbfc672582
commit
0c7ba2ae67
@ -111,10 +111,13 @@ public class TestWorldPurger {
|
||||
}
|
||||
|
||||
private void createAnimals() {
|
||||
World world = mvWorld.getCBWorld();
|
||||
sheep = mock(Sheep.class);
|
||||
when(sheep.getType()).thenReturn(EntityType.SHEEP);
|
||||
when(sheep.getWorld()).thenReturn(world);
|
||||
zombie = mock(Zombie.class);
|
||||
when(zombie.getType()).thenReturn(EntityType.ZOMBIE);
|
||||
when(zombie.getWorld()).thenReturn(world);
|
||||
when(cbworld.getEntities()).thenReturn(Arrays.asList((Entity) sheep, (Entity) zombie));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user