Search in sources :

Example 1 with CleanupDepositJob

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();
}
Also used : CleanupDepositJob(edu.unc.lib.boxc.deposit.CleanupDepositJob) File(java.io.File)

Aggregations

CleanupDepositJob (edu.unc.lib.boxc.deposit.CleanupDepositJob)1 File (java.io.File)1