### Question:
VfsLineageCollector implements ILineageCollector { @Override public List<String> listArtifactsForFile( String pathToArtifact ) throws IllegalArgumentException { return listArtifactsForFile( pathToArtifact, null ); } VfsLineageCollector(); 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 testGetArtifactsForFile_mergeJoin() throws Exception { List<String> artifacts = collector.listArtifactsForFile( "validation/merge_join.ktr" ); assertEquals( 4, artifacts.size() ); }
@Test public void testGetArtifactsForFile_stringsCut() throws Exception { List<String> artifacts = collector.listArtifactsForFile( "validation/strings_cut.ktr" ); assertEquals( 2, artifacts.size() ); }
@Test public void testGetArtifactsForFile_noArtifacts() throws Exception { List<String> artifacts = collector.listArtifactsForFile( "repo/validation/XYZ.ktr" ); assertEquals( 0, artifacts.size() ); }
@Test( expected = IllegalArgumentException.class ) public void testGetArtifactsForFile_noArtifacts_InvalidDate() throws Exception { List<String> artifacts = collector.listArtifactsForFile( "repo/validation/XYZ.ktr", "20159999" ); }