mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00
Fix incorrect/failing test. Entity Type passed in CSV update MUST match entity type of the Item being updated.
This commit is contained in:
@@ -201,7 +201,7 @@ public class CsvImportIT extends AbstractEntityIntegrationTest {
|
|||||||
Collection owningCollection, String title)
|
Collection owningCollection, String title)
|
||||||
throws Exception {
|
throws Exception {
|
||||||
String csvLineString = article2.getID().toString() + "," + owningCollection
|
String csvLineString = article2.getID().toString() + "," + owningCollection
|
||||||
.getHandle() + "," + title + "," + "Person" + "," + author1.getID().toString() + "||" + author3.getID()
|
.getHandle() + "," + title + "," + "Publication" + "," + author1.getID().toString() + "||" + author3.getID()
|
||||||
.toString();
|
.toString();
|
||||||
String[] csv = {"id,collection,dc.title,dspace.entity.type,relation." + "isAuthorOfPublication", csvLineString};
|
String[] csv = {"id,collection,dc.title,dspace.entity.type,relation." + "isAuthorOfPublication", csvLineString};
|
||||||
performImportScript(csv);
|
performImportScript(csv);
|
||||||
|
Reference in New Issue
Block a user