mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 14:33:09 +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++;
|
i++;
|
||||||
}
|
}
|
||||||
lines.add(csvLine);
|
lines.add(csvLine);
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -546,7 +547,8 @@ public class DSpaceCSV
|
|||||||
"2,Two authors,\"Lewis, Stuart||Bloggs, Joe\",Two people wrote this item",
|
"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",
|
"3,Three authors,\"Lewis, Stuart||Bloggs, Joe||Loaf, Meat\",Three people wrote this item",
|
||||||
"4,\"Two line\ntitle\",\"Lewis, Stuart\",abstract",
|
"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
|
// Write the string to a file
|
||||||
String filename = "test.csv";
|
String filename = "test.csv";
|
||||||
|
Reference in New Issue
Block a user