### Question:
FileSystemLineageCollector implements ILineageCollector { @Override public List<String> listArtifacts() throws IllegalArgumentException { return listArtifacts( null, null ); } FileSystemLineageCollector(); String getOutputFolder(); void setOutputFolder( String outputFolder ); @Override List<String> listArtifacts(); @Override List<String> listArtifacts( final String startingDate ); @Override List<String> listArtifacts( final String startingDate, final String endingDate ); @Override List<String> listArtifactsForFile( String pathToArtifact ); @Override List<String> listArtifactsForFile( String pathToArtifact, String startingDate ); @Override List<String> listArtifactsForFile( String pathToArtifact, String startingDate, String endingDate ); @Override void compressArtifacts( List<String> paths, OutputStream os ); static final String DEFAULT_OUTPUT_FOLDER; }### Answer:
@Test public void testListArtifacts() throws Exception { List<String> artifacts = collector.listArtifacts(); assertNotNull( artifacts ); assertEquals( 6, artifacts.size() ); }
@Test public void testListArtifacts_startingDate() throws Exception { List<String> artifacts = collector.listArtifacts( "20150706" ); assertNotNull( artifacts ); assertEquals( 6, artifacts.size() ); }
@Test public void testListArtifacts_startingDate2() throws Exception { List<String> artifacts = collector.listArtifacts( "20150707" ); assertNotNull( artifacts ); assertEquals( 2, artifacts.size() ); }
@Test public void testListArtifacts_startingDateNoResults() throws Exception { List<String> artifacts = collector.listArtifacts( "20160707" ); assertNotNull( artifacts ); assertEquals( 0, artifacts.size() ); }
@Test ( expected = IllegalArgumentException.class ) public void testListArtifacts_InvalidStartingDate() throws Exception { List<String> artifacts = collector.listArtifacts( "20159999" ); }