]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - server/runtime/org.argeo.server.jcr/src/test/java/org/argeo/jcr/tabular/JcrTabularTest.java
Improve CSV and tabular
[lgpl/argeo-commons.git] / server / runtime / org.argeo.server.jcr / src / test / java / org / argeo / jcr / tabular / JcrTabularTest.java
index f91917d98f8511369f0302483c9f36ef6a85b171..7bb8e90bc5e83c5787df9a37b42075604083b182 100644 (file)
@@ -51,7 +51,7 @@ public class JcrTabularTest extends AbstractJcrTestCase {
 
                // write
                Integer columnCount = 15;
-               Long rowCount = 10000l;
+               Long rowCount = 1000l;
                String stringValue = "test, \ntest";
 
                List<TabularColumn> header = new ArrayList<TabularColumn>();
@@ -67,7 +67,7 @@ public class JcrTabularTest extends AbstractJcrTestCase {
                        for (int j = 0; j < columnCount; j++) {
                                objs.add(stringValue);
                        }
-                       writer.appendRow(objs);
+                       writer.appendRow(objs.toArray());
                }
                writer.close();
                session().save();