### Question:
VfsLineageWriter implements ILineageWriter { protected FileObject getDateFolder( LineageHolder holder ) throws KettleFileException, FileSystemException { String dir = ""; if ( holder != null && holder.getExecutionProfile() != null ) { IExecutionProfile profile = holder.getExecutionProfile(); dir += dateFolderFormat.format( profile.getExecutionData().getStartTime() ); } else { dir += dateFolderFormat.format( new Date() ); } FileObject lineageRootFolder = KettleVFS.getFileObject( getOutputFolder() ); FileObject dateFolder = lineageRootFolder.resolveFile( dir ); return dateFolder; } VfsLineageWriter(); @Override void outputExecutionProfile( LineageHolder holder ); @Override void outputLineageGraph( LineageHolder holder ); IGraphWriter getGraphWriter(); void setGraphWriter( IGraphWriter graphWriter ); String getOutputFolder(); static boolean isVFSPrefix( String prefix ); void setOutputFolder( String outputFolder ); @Override String getOutputStrategy(); @Override void setOutputStrategy( String strategy ); @Override void cleanOutput( LineageHolder holder ); static final String DEFAULT_OUTPUT_FOLDER; }### Answer:
@Test public void testGetDateFolder() throws KettleFileException, FileSystemException { assertNotNull( writer.getDateFolder( null ) ); FileObject folder = writer.getDateFolder( holder ); assertNotNull( folder ); assertTrue( folder.getName().getPath().endsWith( VfsLineageWriter.dateFolderFormat.format( now ) ) ); if ( isWindows() ) { writer.setOutputFolder( "file: } else { writer.setOutputFolder( "file: } folder = writer.getDateFolder( holder ); assertTrue( folder.getName().getPath().endsWith( "root" + "/" + VfsLineageWriter.dateFolderFormat.format( now ) ) ); }