use of gov.cms.ab2d.coverage.model.CoverageSearchEvent in project ab2d by CMSgov.
the class CoverageCheckIntegrationTest method runSearchAndLeaveOld.
private void runSearchAndLeaveOld(CoveragePeriod period) {
coverageService.submitSearch(period.getId(), "testing");
startSearchAndPullEvent();
CoverageSearchEvent success = new CoverageSearchEvent();
success.setCoveragePeriod(period);
success.setDescription("testing");
success.setNewStatus(CoverageJobStatus.SUCCESSFUL);
success.setOldStatus(CoverageJobStatus.IN_PROGRESS);
coverageSearchEventRepo.saveAndFlush(success);
period = coveragePeriodRepo.findById(period.getId()).get();
period.setStatus(CoverageJobStatus.SUCCESSFUL);
coveragePeriodRepo.saveAndFlush(period);
}
use of gov.cms.ab2d.coverage.model.CoverageSearchEvent in project ab2d by CMSgov.
the class CoverageCheckIntegrationTest method insertAndLeaveDuplicates.
private void insertAndLeaveDuplicates(CoveragePeriod period, Set<Identifiers> identifiers) {
coverageService.submitSearch(period.getId(), "testing");
CoverageSearchEvent progress = startSearchAndPullEvent();
coverageService.insertCoverage(progress.getId(), identifiers);
CoverageSearchEvent success = new CoverageSearchEvent();
success.setCoveragePeriod(period);
success.setDescription("testing");
success.setNewStatus(CoverageJobStatus.SUCCESSFUL);
success.setOldStatus(CoverageJobStatus.IN_PROGRESS);
coverageSearchEventRepo.saveAndFlush(success);
period = coveragePeriodRepo.findById(period.getId()).get();
period.setStatus(CoverageJobStatus.SUCCESSFUL);
coveragePeriodRepo.saveAndFlush(period);
}
use of gov.cms.ab2d.coverage.model.CoverageSearchEvent in project ab2d by CMSgov.
the class CoverageCheckPredicatesIntegrationTest method insertAndRunSearch.
private void insertAndRunSearch(CoveragePeriod period, Set<Identifiers> identifiers) {
coverageService.submitSearch(period.getId(), "testing");
CoverageSearchEvent progress = startSearchAndPullEvent();
coverageService.insertCoverage(progress.getId(), identifiers);
coverageService.completeSearch(period.getId(), "testing");
}
use of gov.cms.ab2d.coverage.model.CoverageSearchEvent in project ab2d by CMSgov.
the class CoverageCheckPredicatesIntegrationTest method runSearchAndLeaveOld.
private void runSearchAndLeaveOld(CoveragePeriod period) {
coverageService.submitSearch(period.getId(), "testing");
startSearchAndPullEvent();
CoverageSearchEvent success = new CoverageSearchEvent();
success.setCoveragePeriod(period);
success.setDescription("testing");
success.setNewStatus(CoverageJobStatus.SUCCESSFUL);
success.setOldStatus(CoverageJobStatus.IN_PROGRESS);
coverageSearchEventRepo.saveAndFlush(success);
period = coveragePeriodRepo.findById(period.getId()).get();
period.setStatus(CoverageJobStatus.SUCCESSFUL);
coveragePeriodRepo.saveAndFlush(period);
}
use of gov.cms.ab2d.coverage.model.CoverageSearchEvent in project ab2d by CMSgov.
the class CoverageCheckPredicatesIntegrationTest method insertAndLeaveDuplicates.
private void insertAndLeaveDuplicates(CoveragePeriod period, Set<Identifiers> identifiers) {
coverageService.submitSearch(period.getId(), "testing");
CoverageSearchEvent progress = startSearchAndPullEvent();
coverageService.insertCoverage(progress.getId(), identifiers);
CoverageSearchEvent success = new CoverageSearchEvent();
success.setCoveragePeriod(period);
success.setDescription("testing");
success.setNewStatus(CoverageJobStatus.SUCCESSFUL);
success.setOldStatus(CoverageJobStatus.IN_PROGRESS);
coverageSearchEventRepo.saveAndFlush(success);
period = coveragePeriodRepo.findById(period.getId()).get();
period.setStatus(CoverageJobStatus.SUCCESSFUL);
coveragePeriodRepo.saveAndFlush(period);
}
Aggregations