mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-14 13:51:12 +00:00
fixed JPA issue when updating existing owners/pets
This commit is contained in:
parent
e308871591
commit
5bf31dbe5a
4 changed files with 19 additions and 4 deletions
|
|
@ -89,8 +89,8 @@ public abstract class AbstractClinicServiceTests {
|
|||
owner.setCity("Wollongong");
|
||||
owner.setTelephone("4444444444");
|
||||
this.clinicService.saveOwner(owner);
|
||||
Assert.assertNotEquals("Owner Id should have been generated", owner.getId().longValue(), 0);
|
||||
owners = this.clinicService.findOwnerByLastName("Schultz");
|
||||
assertNotNull("Owner Id should have been generated", owner.getId());
|
||||
assertEquals("Verifying number of owners after inserting a new one.", found + 1, owners.size());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue