Fix #111 For pet's birthday we are now using jodatime LocalDate instead of DateTime

This commit is contained in:
Antoine Rey 2015-10-28 08:57:42 +01:00
parent 4aa89ae4e2
commit 92de6557e1
3 changed files with 9 additions and 6 deletions

View file

@ -20,6 +20,7 @@ import static org.assertj.core.api.Assertions.assertThat;
import java.util.Collection;
import org.joda.time.DateTime;
import org.joda.time.LocalDate;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.samples.petclinic.model.Owner;
@ -135,7 +136,7 @@ public abstract class AbstractClinicServiceTests {
pet.setName("bowser");
Collection<PetType> types = this.clinicService.findPetTypes();
pet.setType(EntityUtils.getById(types, PetType.class, 2));
pet.setBirthDate(new DateTime());
pet.setBirthDate(new LocalDate());
owner6.addPet(pet);
assertThat(owner6.getPets().size()).isEqualTo(found + 1);