Search in sources :

Example 1 with IngestDepositRecordJob

use of edu.unc.lib.boxc.deposit.fcrepo4.IngestDepositRecordJob in project box-c by UNC-Libraries.

the class IngestDepositRecordJobIT method init.

@Before
public void init() throws Exception {
    job = new IngestDepositRecordJob();
    job.setJobUUID(jobUUID);
    job.setDepositUUID(depositUUID);
    job.setDepositDirectory(depositDir);
    job.setPremisLoggerFactory(premisLoggerFactory);
    setField(job, "pidMinter", pidMinter);
    setField(job, "depositModelManager", depositModelManager);
    setField(job, "depositsDirectory", depositsDirectory);
    setField(job, "depositStatusFactory", depositStatusFactory);
    setField(job, "jobStatusFactory", jobStatusFactory);
    setField(job, "repoObjLoader", repoObjLoader);
    setField(job, "repoObjFactory", repoObjFactory);
    setField(job, "transferService", binaryTransferService);
    setField(job, "locationManager", storageLocationManager);
    job.init();
    Model model = job.getWritableModel();
    Resource depositResc = model.getResource(depositPid.getRepositoryPath());
    depositResc.addProperty(Cdr.storageLocation, LOC1_ID);
    job.closeModel();
}
Also used : IngestDepositRecordJob(edu.unc.lib.boxc.deposit.fcrepo4.IngestDepositRecordJob) Model(org.apache.jena.rdf.model.Model) Resource(org.apache.jena.rdf.model.Resource) Before(org.junit.Before)

Aggregations

IngestDepositRecordJob (edu.unc.lib.boxc.deposit.fcrepo4.IngestDepositRecordJob)1 Model (org.apache.jena.rdf.model.Model)1 Resource (org.apache.jena.rdf.model.Resource)1 Before (org.junit.Before)1