mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-19 16:03:07 +00:00
[DS-3952] Drop dangling references that caused unfortunate coupling
with following test classes.
This commit is contained in:

committed by
Mark H. Wood

parent
c063434e01
commit
6fa5bf6548
@@ -41,8 +41,13 @@ public class RequestItemBuilder
|
||||
@Override
|
||||
public void cleanup()
|
||||
throws Exception {
|
||||
LOG.info("cleanup()");
|
||||
delete(context,requestItem);
|
||||
LOG.debug("cleanup()");
|
||||
if (null != requestItem) {
|
||||
delete(context, requestItem);
|
||||
requestItem = null;
|
||||
} else {
|
||||
LOG.debug("nothing to clean up.");
|
||||
}
|
||||
}
|
||||
|
||||
public static RequestItemBuilder createRequestItem(Context ctx, Item item,
|
||||
|
Reference in New Issue
Block a user