mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
w2p-63043 Minor tweeks to testing enviorment and edge case correction
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -41,6 +41,4 @@ nb-configuration.xml
|
||||
.DS_Store
|
||||
|
||||
##Ignore JRebel project configuration
|
||||
rebel.xml
|
||||
|
||||
test.csv
|
||||
rebel.xml
|
@@ -776,7 +776,6 @@
|
||||
<groupId>org.hibernate.javax.persistence</groupId>
|
||||
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
||||
<version>1.0.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
@@ -33,6 +33,7 @@ import org.dspace.content.service.ItemService;
|
||||
import org.dspace.content.service.MetadataFieldService;
|
||||
import org.dspace.content.service.MetadataValueService;
|
||||
import org.dspace.content.service.RelationshipService;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -64,6 +65,14 @@ public class CSVMetadataImportReferenceTest extends AbstractEntityIntegrationTes
|
||||
col1 = CollectionBuilder.createCollection(context, parentCommunity).withName("Collection 1").build();
|
||||
}
|
||||
|
||||
/**
|
||||
* Close testing enviorment and restore auth system
|
||||
*/
|
||||
@After
|
||||
public void close() {
|
||||
context.restoreAuthSystemState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to validate relationships
|
||||
* @param leftItem the left item in a known relationship
|
||||
|
Reference in New Issue
Block a user