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);
}
Aggregations