Update src/test/java/org/springframework/samples/petclinic/service/ClinicServiceTests.java

Co-authored-by: zral <73640367+zyberzebra@users.noreply.github.com>
This commit is contained in:
Anyul Rivas 2024-03-17 15:41:14 +01:00 committed by Dave Syer
parent d604a01984
commit ca5785465f

View file

@ -112,7 +112,7 @@ class ClinicServiceTests {
owner.setCity("Wollongong");
owner.setTelephone("4444444444");
this.owners.save(owner);
assertThat(owner.getId().longValue()).isNotZero();
assertThat(owner.getId()).isNotZero();
owners = this.owners.findByLastName("Schultz", pageable);
assertThat(owners.getTotalElements()).isEqualTo(found + 1);