@Test @DatabaseSetup("ingestData.xml") public void testFindAll() { PageRequest pageable = new PageRequest(0, 2); Page<Ingest> page = ingestService.findAll(pageable); Assert.assertNotNull(page); Assert.assertEquals(2, page.getTotalPages()); Assert.assertEquals(2, page.getNumberOfElements()); Assert.assertEquals(3, page.getTotalElements()); List<Ingest> ingests = page.getContent(); Assert.assertEquals(2, ingests.size()); }
@Override @Transactional(readOnly = true) public Page<Ingest> findAll(Pageable pageable) { Page<Ingest> page = ingestRepository.findAll(pageable); return page; }
IngestServiceImpl implements IngestService { @Override @Transactional(readOnly = true) public Page<Ingest> findAll(Pageable pageable) { Page<Ingest> page = ingestRepository.findAll(pageable); return page; } }
IngestServiceImpl implements IngestService { @Override @Transactional(readOnly = true) public Page<Ingest> findAll(Pageable pageable) { Page<Ingest> page = ingestRepository.findAll(pageable); return page; }  }
IngestServiceImpl implements IngestService { @Override @Transactional(readOnly = true) public Page<Ingest> findAll(Pageable pageable) { Page<Ingest> page = ingestRepository.findAll(pageable); return page; }  @Override @Transactional Ingest save(Ingest ingest); Ingest saveAndUpdateServerQuery(Ingest ingest); @Override @Transactional void delete(Long id); @Override @Transactional(readOnly = true) Page<Ingest> findAll(Pageable pageable); @Override @Transactional(readOnly = false) Ingest save(Ingest ingest, Long customRepositoryId,
			InstanceType customRepoInstanceType); @Override Ingest findById(Long id); @Override @Transactional int unscheduleByRepository(Long repositoryId); @Override @Transactional Long countScheduledIngestsByRepo(Long repoId); @Override @Transactional Ingest saveAndSchedule(Ingest ingest, Long customRepositoryId,
			InstanceType typeOfInstance); @Override @Transactional Ingest saveAndSchedule(Ingest ingest); @Override @Transactional Date getNextRun(Ingest ingest); @Override @Transactional SortedSet<Long> getCurrentlyExecutingJobs(); @Override @Transactional boolean unscheduleIngest(Long id); @Override @Transactional boolean interruptIngest(Long id); }
IngestServiceImpl implements IngestService { @Override @Transactional(readOnly = true) public Page<Ingest> findAll(Pageable pageable) { Page<Ingest> page = ingestRepository.findAll(pageable); return page; }  @Override @Transactional Ingest save(Ingest ingest); Ingest saveAndUpdateServerQuery(Ingest ingest); @Override @Transactional void delete(Long id); @Override @Transactional(readOnly = true) Page<Ingest> findAll(Pageable pageable); @Override @Transactional(readOnly = false) Ingest save(Ingest ingest, Long customRepositoryId,
			InstanceType customRepoInstanceType); @Override Ingest findById(Long id); @Override @Transactional int unscheduleByRepository(Long repositoryId); @Override @Transactional Long countScheduledIngestsByRepo(Long repoId); @Override @Transactional Ingest saveAndSchedule(Ingest ingest, Long customRepositoryId,
			InstanceType typeOfInstance); @Override @Transactional Ingest saveAndSchedule(Ingest ingest); @Override @Transactional Date getNextRun(Ingest ingest); @Override @Transactional SortedSet<Long> getCurrentlyExecutingJobs(); @Override @Transactional boolean unscheduleIngest(Long id); @Override @Transactional boolean interruptIngest(Long id);  }