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 GitHub
parent 255e7fdaa8
commit c3800d3565
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);