use of edu.unc.lib.boxc.deposit.CleanupDepositJob in project box-c by UNC-Libraries.
the class CleanupDepositJobTest method createJob.
private void createJob() throws Exception {
// Create a deposit directory with a manifest file in it
File manifestFile = new File(depositDir, "manifest.txt");
manifestFile.createNewFile();
// Initialize the job
job = new CleanupDepositJob(jobUUID, depositUUID);
job.setIngestSourceManager(sourceManager);
job.setDepositStatusFactory(depositStatusFactory);
setField(job, "depositsDirectory", depositsDirectory);
setField(job, "jobStatusFactory", jobStatusFactory);
setField(job, "depositModelManager", depositModelManager);
job.init();
}
Aggregations