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)
|
if(collection != null)
|
||||||
{
|
{
|
||||||
collectionService.delete(context, collection);
|
collectionService.delete(context, collection);
|
||||||
|
context.commit();
|
||||||
communityService.delete(context, communityService.find(context, owningCommunity.getID()));
|
communityService.delete(context, communityService.find(context, owningCommunity.getID()));
|
||||||
}
|
}
|
||||||
context.restoreAuthSystemState();
|
context.restoreAuthSystemState();
|
||||||
|
@@ -1480,6 +1480,7 @@ public class ItemTest extends AbstractDSpaceObjectTest
|
|||||||
context.turnOffAuthorisationSystem();
|
context.turnOffAuthorisationSystem();
|
||||||
Collection from = createCollection();
|
Collection from = createCollection();
|
||||||
Collection to = createCollection();
|
Collection to = createCollection();
|
||||||
|
it.addCollection(from);
|
||||||
it.setOwningCollection(from);
|
it.setOwningCollection(from);
|
||||||
|
|
||||||
itemService.move(context, it, from, to);
|
itemService.move(context, it, from, to);
|
||||||
|
Reference in New Issue
Block a user