mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Fixing tests
This commit is contained in:
@@ -103,6 +103,7 @@ public class CollectionTest extends AbstractDSpaceObjectTest
|
||||
if(collection != null)
|
||||
{
|
||||
collectionService.delete(context, collection);
|
||||
context.commit();
|
||||
communityService.delete(context, communityService.find(context, owningCommunity.getID()));
|
||||
}
|
||||
context.restoreAuthSystemState();
|
||||
|
@@ -1480,6 +1480,7 @@ public class ItemTest extends AbstractDSpaceObjectTest
|
||||
context.turnOffAuthorisationSystem();
|
||||
Collection from = createCollection();
|
||||
Collection to = createCollection();
|
||||
it.addCollection(from);
|
||||
it.setOwningCollection(from);
|
||||
|
||||
itemService.move(context, it, from, to);
|
||||
|
Reference in New Issue
Block a user