@Test public void testParseEmptyFields() throws Throwable { String testFileName = "CSV_testdata_noHeader_empty_fields.csv"; InputStream is; List<List<String>>actual; List<String> list; myLog.debug( "Testing empty fields" ); is = ClassLoader.getSystemResourceAsStream( testFileName ); actual = myClassUnderTest.parse( is, ";", "UTF-8" ); myLog.debug( "Received: " + actual ); assertEquals( 2, actual.size() ); assertEquals( "[[Bobby, Smith, C., Bob, bob@gmail.com, 7.3.57, ], [Sandy, Hübscher, , Sandra, sandra@lamp.vm, , ]]", actual.toString() ); list = actual.get( 0 ); assertEquals( 7, list.size() ); assertEquals( "", list.get( 6 ) ); list = actual.get( 1 ); assertEquals( 7, list.size() ); assertEquals( "", list.get( 2 ) ); assertEquals( "", list.get( 5 ) ); assertEquals( "", list.get( 6 ) ); }
public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); }
CsvParser { public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); } }
CsvParser { public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); }  }
CsvParser { public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); }  List<List<String>> parse( InputStream aInputStream,
                                     String aDelimiter,
                                     String aEncoding ); List<List<String>> parse( InputStream aInputStream,
                                     String aDelimiter,
                                     String aEncoding,
                                     List<RawDataFilterString> aFilters ); }
CsvParser { public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); }  List<List<String>> parse( InputStream aInputStream,
                                     String aDelimiter,
                                     String aEncoding ); List<List<String>> parse( InputStream aInputStream,
                                     String aDelimiter,
                                     String aEncoding,
                                     List<RawDataFilterString> aFilters );  }