public class LocalTestFileService extends AbstractTestFileService
FileDataService
based on MongoDB.Constructor and Description |
---|
LocalTestFileService(FileDataService fileDataService,
String localDir,
String testFileDir) |
Modifier and Type | Method and Description |
---|---|
protected void |
downloadRemoteFile(FileData fileData,
File localFile)
Download the file represented from the remote location to the local file.
|
protected String |
getMirrorPath()
Uses 'local' plus the CRC32 of
testFileDir |
protected List<FileData> |
listRemoteFiles()
Does a listing of files on the local directory
|
String |
toString() |
afterPropertiesSet, getFile, getFile, getFileByName
public LocalTestFileService(FileDataService fileDataService, String localDir, String testFileDir)
protected String getMirrorPath()
testFileDir
getMirrorPath
in class AbstractTestFileService
protected List<FileData> listRemoteFiles()
listRemoteFiles
in class AbstractTestFileService
remote name
populatedprotected void downloadRemoteFile(FileData fileData, File localFile) throws IOException
AbstractTestFileService
downloadRemoteFile
in class AbstractTestFileService
fileData
- data containing details of the remote filelocalFile
- the local file to write toIOException
- will be handled by the calling codeCopyright © 2014. All rights reserved.