@Test public void testGetJobSpecSummariesWithoutQueryReturnsAList() throws IOException { final Path jobSpecsDir = Files.createTempDirectory(FilesystemJobSpecDAOTest.class.getSimpleName()); final FilesystemJobSpecDAO filesystemJobSpecDAO = new FilesystemJobSpecDAO(jobSpecsDir); final List<JobSpecSummary> jobSpecSummaries = filesystemJobSpecDAO.getJobSpecSummaries(20, 0); assertThat(jobSpecSummaries).isNotNull(); }
@Override public List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page) { return getJobSpecSummaries(pageSize, page, ""); }
FilesystemJobSpecDAO implements JobSpecDAO { @Override public List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page) { return getJobSpecSummaries(pageSize, page, ""); } }
FilesystemJobSpecDAO implements JobSpecDAO { @Override public List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page) { return getJobSpecSummaries(pageSize, page, ""); } FilesystemJobSpecDAO(Path jobSpecsDir); }
FilesystemJobSpecDAO implements JobSpecDAO { @Override public List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page) { return getJobSpecSummaries(pageSize, page, ""); } FilesystemJobSpecDAO(Path jobSpecsDir); @Override Optional<JobSpec> getJobSpecById(JobSpecId jobSpecId); @Override Map<String, HealthCheck> getHealthChecks(); @Override Optional<JobSpecSummary> getJobSpecSummaryById(JobSpecId jobSpecId); @Override List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page); @Override List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page, String query); }
FilesystemJobSpecDAO implements JobSpecDAO { @Override public List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page) { return getJobSpecSummaries(pageSize, page, ""); } FilesystemJobSpecDAO(Path jobSpecsDir); @Override Optional<JobSpec> getJobSpecById(JobSpecId jobSpecId); @Override Map<String, HealthCheck> getHealthChecks(); @Override Optional<JobSpecSummary> getJobSpecSummaryById(JobSpecId jobSpecId); @Override List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page); @Override List<JobSpecSummary> getJobSpecSummaries(int pageSize, int page, String query);  }