From 0cbd6ea68f3cb7e223b12d399c4b17fab99a2a7c Mon Sep 17 00:00:00 2001 From: Stuart Lewis Date: Thu, 29 Oct 2009 01:16:25 +0000 Subject: [PATCH] [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 --- .../src/main/java/org/dspace/app/bulkedit/DSpaceCSV.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dspace-api/src/main/java/org/dspace/app/bulkedit/DSpaceCSV.java b/dspace-api/src/main/java/org/dspace/app/bulkedit/DSpaceCSV.java index aa5ea38d4a..029d1b081b 100644 --- a/dspace-api/src/main/java/org/dspace/app/bulkedit/DSpaceCSV.java +++ b/dspace-api/src/main/java/org/dspace/app/bulkedit/DSpaceCSV.java @@ -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";