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, getFileByNamepublic LocalTestFileService(FileDataService fileDataService, String localDir, String testFileDir)
protected String getMirrorPath()
testFileDirgetMirrorPath in class AbstractTestFileServiceprotected List<FileData> listRemoteFiles()
listRemoteFiles in class AbstractTestFileServiceremote name populatedprotected void downloadRemoteFile(FileData fileData, File localFile) throws IOException
AbstractTestFileServicedownloadRemoteFile in class AbstractTestFileServicefileData - data containing details of the remote filelocalFile - the local file to write toIOException - will be handled by the calling codeCopyright © 2014. All rights reserved.