branch develop updated (7845ed7 -> d1c1fd8)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository nuiton-csv. See https://gitlab.nuiton.org/nuiton/nuiton-csv.git from 7845ed7 Utilisation de try-with-ressources new d1c1fd8 Replace System.out The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit d1c1fd8ff42431a4f0effaf39da3ed841096080e Author: Arnaud Thimel <thimel@codelutin.com> Date: Wed May 2 16:51:42 2018 +0200 Replace System.out Summary of changes: src/test/java/org/nuiton/csv/MyModelBuilderTest.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository nuiton-csv. See https://gitlab.nuiton.org/nuiton/nuiton-csv.git commit d1c1fd8ff42431a4f0effaf39da3ed841096080e Author: Arnaud Thimel <thimel@codelutin.com> Date: Wed May 2 16:51:42 2018 +0200 Replace System.out --- src/test/java/org/nuiton/csv/MyModelBuilderTest.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/nuiton/csv/MyModelBuilderTest.java b/src/test/java/org/nuiton/csv/MyModelBuilderTest.java index dddfaef..f1c71b2 100644 --- a/src/test/java/org/nuiton/csv/MyModelBuilderTest.java +++ b/src/test/java/org/nuiton/csv/MyModelBuilderTest.java @@ -22,8 +22,12 @@ package org.nuiton.csv; import org.apache.commons.io.IOUtils; +import org.junit.Assert; import org.junit.Test; +import java.util.LinkedList; +import java.util.List; + public class MyModelBuilderTest { @Test @@ -61,9 +65,16 @@ public class MyModelBuilderTest { .buildModelForImport(emptyRowBeanFactory); Import<RowBean> rowBeans = Import.newImport(model, IOUtils.toInputStream(content, "UTF-8")); + + List<RowBean> list = new LinkedList<>(); for (RowBean rowBean : rowBeans) { - System.out.println(rowBean); + list.add(rowBean); } + + Assert.assertEquals(3, list.size()); + Assert.assertEquals(18, (int)list.get(0).getNumber()); + Assert.assertEquals("2ème ligne", list.get(1).getTitle()); + Assert.assertEquals(RowBeanEnum.TWO, list.get(2).getRowBeanEnum()); } } -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
participants (1)
-
nuiton.org scm