use of org.alfresco.service.cmr.model.FileNotFoundException in project records-management by Alfresco.
the class RM978Test method testCopyFolderInFolderInRmSite.
public void testCopyFolderInFolderInRmSite() {
doBehaviourDrivenTest(new BehaviourDrivenTest(AlfrescoRuntimeException.class, user) {
private NodeRef folder1;
private NodeRef rmCategory;
private NodeRef rmFolder;
public void given() {
folder1 = fileFolderService.create(documentLibrary, GUID.generate(), ContentModel.TYPE_FOLDER).getNodeRef();
runAs(new RunAsWork<Void>() {
public Void doWork() throws Exception {
rmCategory = filePlanService.createRecordCategory(filePlan, GUID.generate());
rmFolder = recordFolderService.createRecordFolder(rmCategory, GUID.generate());
return null;
}
}, getAdminUserName());
}
public void when() throws FileExistsException, FileNotFoundException {
fileFolderService.copy(folder1, rmFolder, GUID.generate());
}
});
}
Aggregations