Merge branch 'master' into rogerDev

This commit is contained in:
SunXP 2018-02-24 22:37:09 -05:00 committed by GitHub
commit 5fd342fcee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,12 +56,15 @@ public class OwnerTest {
@Test
public void setPetgetPetsTest() {
Pet pet = new Pet();
pet.setName("Pogo");
ownerInstance.addPet(pet);
List<Pet> result = ownerInstance.getPets();
Pet onlyPet = result.iterator().next();
assertEquals(1, result.size()); // Make sure there's only one element in the Collection returned
assertEquals(pet, onlyPet);
assertEquals(pet.getName(), onlyPet.getName());
}
@Test