mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
[DS-161] Bulk metadata editing - add new CSV test case (unbalanced quotes)
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@4489 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -425,6 +425,7 @@ public class DSpaceCSV
|
||||
i++;
|
||||
}
|
||||
lines.add(csvLine);
|
||||
counter++;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -546,7 +547,8 @@ public class DSpaceCSV
|
||||
"2,Two authors,\"Lewis, Stuart||Bloggs, Joe\",Two people wrote this item",
|
||||
"3,Three authors,\"Lewis, Stuart||Bloggs, Joe||Loaf, Meat\",Three people wrote this item",
|
||||
"4,\"Two line\ntitle\",\"Lewis, Stuart\",abstract",
|
||||
"5,\"\"\"Embedded quotes\"\" here\",\"Lewis, Stuart\",\"Abstract with\ntwo\nnew lines\""};
|
||||
"5,\"\"\"Embedded quotes\"\" here\",\"Lewis, Stuart\",\"Abstract with\ntwo\nnew lines\"",
|
||||
"6,\"\"\"Unbalanced embedded\"\" quotes\"\" here\",\"Lewis, Stuart\",\"Abstract with\ntwo\nnew lines\"",};
|
||||
|
||||
// Write the string to a file
|
||||
String filename = "test.csv";
|
||||
|
Reference in New Issue
Block a user