@Test public void testSeparator() throws IOException { String data = "a;b;c\nd;e;f"; CSVReader reader = new CSVReader(new StringReader(data)); reader.setSeparator(';'); String[] row = reader.next(); compareRows("first row read incorrectly", new String[] {"a", "b", "c"}, row); row = reader.next(); compareRows("second row read incorrectly", new String[] {"d", "e", "f"}, row); compareRows("reading not terminated correctly", null, reader.next()); }