Remove unused findAll method from OwnerRepository and related test setup
Some checks failed
Java CI with Gradle / build (17) (push) Failing after 2s
Java CI with Maven / build (17) (push) Failing after 1s

Signed-off-by: Antoine Rey <antoine.rey@free.fr>
This commit is contained in:
Antoine Rey 2025-05-08 16:52:06 +02:00 committed by Dave Syer
parent c5af32d5a1
commit 3a931080d4
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); 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))) given(this.owners.findByLastNameStartingWith(eq("Franklin"), any(Pageable.class)))
.willReturn(new PageImpl<>(List.of(george))); .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)); given(this.owners.findById(TEST_OWNER_ID)).willReturn(Optional.of(george));
Visit visit = new Visit(); Visit visit = new Visit();
visit.setDate(LocalDate.now()); visit.setDate(LocalDate.now());