CommandLineUtils { public static List< File > computeSourceList( final String source ) { if ( !source.contains( "," ) ) { return null; } final List< File > sourceList = new ArrayList< File >(); for ( int i = 0; i < source.split( "," ).length; i++ ) { sourceList.add( new File( source.split( "," )[ i ] ) ); } return sourceList; } private  CommandLineUtils(); static List< File > computeSourceList( final String source ); static void registerParameter( final JSAP jsap,
                                         final ICommandLineOptions option,
                                         final boolean required );  }
@Test public void testComputeSourceList() { assertEquals( 3, CommandLineUtils.computeSourceList( "lala,toto,tyty" ).size() ); assertNull( CommandLineUtils.computeSourceList( "lala" ) ); }