BaseCsvImporter extends BaseTextImporter { @Override public int countRows(byte[] bytes, int sheetIndex) { List<String[]> lines = readCsvFile(bytes, SystemPropertyUtils.getCsvSeparator(), SystemPropertyUtils.getCsvQuoteChar()); return lines.size(); }  @Override int countRows(byte[] bytes, int sheetIndex);  }
@Test public void testCountRows() throws IOException { byte[] bytes = readFile("importertest.csv"); int rows = importer.countRows(bytes, 0); assertEquals(7, rows); }