@@ -0,0 +1,1279 @@
+package ro.dcsi.internship;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotEquals;%0A%0Aimport java.util.Iterator;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * Created by Catalin on 20/06/2017.%0A */%0Apublic class TestCSVRead %7B%0A%0A%0A%0A  @Test%0A  public void HeadersNotDefault() %7B%0A    FileUserManger sync = new FileUserManger();%0A    UserManager2 database = sync.readUsersAsManager(%22src/test/resources/CSV/headersnotdefault.csv%22);%0A    Iterator%3CUser%3E users = database.iterator();%0A    User buffer = null;%0A%0A    while (users.hasNext()) %7B%0A      buffer = users.next();%0A    %7D%0A%0A    assertNotEquals(buffer, null);%0A    assertEquals(buffer.getName(), %22CatalinLast%22);%0A    assertEquals(buffer.getEmail(), %22catalinlast@yahoo.com%22);%0A%0A  %7D%0A%0A%0A  @Test%0A  public void HeadersLarge() %7B%0A    FileUserManger sync = new FileUserManger();%0A    UserManager2 database = sync.readUsersAsManager(%22src/test/resources/CSV/headerslarge.csv%22);%0A    Iterator%3CUser%3E users = database.iterator();%0A    User buffer = null;%0A    int count = 0;%0A%0A    while (users.hasNext()) %7B%0A      buffer = users.next();%0A      count++;%0A    %7D%0A%0A    assertEquals(count, 1070);%0A    assertNotEquals(buffer, null);%0A    assertEquals(buffer.getName(), %22CatalinLast%22);%0A    assertEquals(buffer.getEmail(), %22catalinlast@yahoo.com%22);%0A  %7D%0A%0A%7D%0A

add read tests CSV