Remove unused findAll method from OwnerRepository and related test setup

Signed-off-by: Antoine Rey <antoine.rey@free.fr>
This commit is contained in:
Antoine Rey 2025-05-08 16:52:06 +02:00
parent c5af32d5a1
commit d571673b82
No known key found for this signature in database
GPG key ID: CE81041B1653289B
2 changed files with 0 additions and 7 deletions

View file

@ -69,9 +69,4 @@ public interface OwnerRepository extends JpaRepository<Owner, Integer> {
*/
Optional<Owner> findById(@Nonnull Integer id);
/**
* Returns all the owners from data store
**/
Page<Owner> findAll(Pageable pageable);
}

View file

@ -94,8 +94,6 @@ class OwnerControllerTests {
given(this.owners.findByLastNameStartingWith(eq("Franklin"), any(Pageable.class)))
.willReturn(new PageImpl<>(List.of(george)));
given(this.owners.findAll(any(Pageable.class))).willReturn(new PageImpl<>(List.of(george)));
given(this.owners.findById(TEST_OWNER_ID)).willReturn(Optional.of(george));
Visit visit = new Visit();
visit.setDate(LocalDate.now());