mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 23:13:10 +00:00
DS-3406: Remove unnecessary commit
This commit is contained in:
@@ -7,6 +7,20 @@
|
|||||||
*/
|
*/
|
||||||
package org.dspace.content;
|
package org.dspace.content;
|
||||||
|
|
||||||
|
import mockit.NonStrictExpectations;
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
import org.dspace.app.util.AuthorizeUtil;
|
||||||
|
import org.dspace.authorize.AuthorizeException;
|
||||||
|
import org.dspace.core.Constants;
|
||||||
|
import org.dspace.core.Context;
|
||||||
|
import org.dspace.core.factory.CoreServiceFactory;
|
||||||
|
import org.dspace.core.service.LicenseService;
|
||||||
|
import org.dspace.eperson.EPerson;
|
||||||
|
import org.dspace.eperson.Group;
|
||||||
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -15,20 +29,8 @@ import java.util.Iterator;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
|
||||||
import org.dspace.authorize.AuthorizeException;
|
|
||||||
import org.apache.log4j.Logger;
|
|
||||||
import org.dspace.core.Context;
|
|
||||||
import org.dspace.core.factory.CoreServiceFactory;
|
|
||||||
import org.dspace.core.service.LicenseService;
|
|
||||||
import org.dspace.eperson.EPerson;
|
|
||||||
import org.dspace.eperson.Group;
|
|
||||||
import org.junit.*;
|
|
||||||
import static org.junit.Assert.* ;
|
|
||||||
import static org.hamcrest.CoreMatchers.*;
|
import static org.hamcrest.CoreMatchers.*;
|
||||||
import mockit.NonStrictExpectations;
|
import static org.junit.Assert.*;
|
||||||
import org.dspace.app.util.AuthorizeUtil;
|
|
||||||
import org.dspace.core.Constants;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unit Tests for class Collection
|
* Unit Tests for class Collection
|
||||||
@@ -103,7 +105,6 @@ 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();
|
||||||
|
Reference in New Issue
Block a user