@Test public void verifyHousekeepingPathFetch() { LocalDateTime now = LocalDateTime.now(); Pageable emptyPageable = PageRequest.of(0, 1); handler.findRecordsToClean(now, emptyPageable); verify(housekeepingPathRepository).findRecordsForCleanupByModifiedTimestamp(now, emptyPageable); }
@Override public Page<HousekeepingPath> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingPathRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); }
UnreferencedPathHandler extends GenericPathHandler { @Override public Page<HousekeepingPath> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingPathRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); } }
UnreferencedPathHandler extends GenericPathHandler { @Override public Page<HousekeepingPath> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingPathRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); } @Autowired  UnreferencedPathHandler(
      HousekeepingPathRepository housekeepingPathRepository,
      @Qualifier("s3PathCleaner") PathCleaner pathCleaner
  ); }
UnreferencedPathHandler extends GenericPathHandler { @Override public Page<HousekeepingPath> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingPathRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); } @Autowired  UnreferencedPathHandler(
      HousekeepingPathRepository housekeepingPathRepository,
      @Qualifier("s3PathCleaner") PathCleaner pathCleaner
  ); @Override Page<HousekeepingPath> findRecordsToClean(LocalDateTime instant, Pageable pageable); }
UnreferencedPathHandler extends GenericPathHandler { @Override public Page<HousekeepingPath> findRecordsToClean(LocalDateTime instant, Pageable pageable) { return housekeepingPathRepository.findRecordsForCleanupByModifiedTimestamp(instant, pageable); } @Autowired  UnreferencedPathHandler(
      HousekeepingPathRepository housekeepingPathRepository,
      @Qualifier("s3PathCleaner") PathCleaner pathCleaner
  ); @Override Page<HousekeepingPath> findRecordsToClean(LocalDateTime instant, Pageable pageable);  }