Search in sources :

Example 1 with StaffOnlyPermissionJob

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

the class StaffOnlyPermissionJobTest method setup.

@Before
public void setup() throws Exception {
    job = new StaffOnlyPermissionJob();
    job.setJobUUID(jobUUID);
    job.setDepositUUID(depositUUID);
    job.setDepositDirectory(depositDir);
    setField(job, "depositModelManager", depositModelManager);
    setField(job, "depositStatusFactory", depositStatusFactory);
    setField(job, "jobStatusFactory", jobStatusFactory);
    job.init();
    model = job.getWritableModel();
    depBag = model.createBag(depositPid.getRepositoryPath());
    depBag.addProperty(Cdr.storageLocation, LOC1_ID);
}
Also used : StaffOnlyPermissionJob(edu.unc.lib.boxc.deposit.fcrepo4.StaffOnlyPermissionJob) Before(org.junit.Before)

Aggregations

StaffOnlyPermissionJob (edu.unc.lib.boxc.deposit.fcrepo4.StaffOnlyPermissionJob)1 Before (org.junit.Before)1