[Task 71405] fixed the Process Files endpoints and added two tests for them

This commit is contained in:
Raf Ponsaerts
2020-06-16 09:46:01 +02:00
parent b32c461006
commit 31c87c2ba1
5 changed files with 56 additions and 15 deletions

View File

@@ -8,6 +8,7 @@
package org.dspace.scripts;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
@@ -176,6 +177,9 @@ public class Process implements ReloadableEntity<Integer> {
* @return The Bitstreams that are used or created by the process
*/
public List<Bitstream> getBitstreams() {
if (bitstreams == null) {
bitstreams = new LinkedList<>();
}
return bitstreams;
}