130131132133134135136137
} @Test public void getOldestAnimalAndRemoveTest() { when(queueAnimals.pop()).thenReturn(dog); Animal actualAnimal = persistenceManager.getOldestAnimalAndRemove(); Assert.assertEquals(dog, actualAnimal); }
137138139140141142143144
} @Test public void getAnimalByIdTest() { when(tableIdAnimals.get(2)).thenReturn(dog); Animal actualAnimal = persistenceManager.getAnimalById(2); Assert.assertEquals(dog, actualAnimal); }