@Test public void test_add_directory_to_file_location() { FileSystemArchiveFile af = new FileSystemArchiveFile("mime", FIXITY, FILE_NAME, TEST_DIRECTORY); assertThat(af.generateFilePath(), is(equalTo(TEST_DIRECTORY + "/" + FILE_NAME))); }
public String generateFilePath() { String fullPath = filesDirectory + "/" + fileName; File file = new File(fullPath); if (!file.exists()) throw new RuntimeException("The file was not found at the fileName: " + fullPath); return fullPath; }
FileSystemArchiveFile extends ArchiveFile { public String generateFilePath() { String fullPath = filesDirectory + "/" + fileName; File file = new File(fullPath); if (!file.exists()) throw new RuntimeException("The file was not found at the fileName: " + fullPath); return fullPath; } }
FileSystemArchiveFile extends ArchiveFile { public String generateFilePath() { String fullPath = filesDirectory + "/" + fileName; File file = new File(fullPath); if (!file.exists()) throw new RuntimeException("The file was not found at the fileName: " + fullPath); return fullPath; } FileSystemArchiveFile(String mimeType, String originalFixity, String fileName, String filesDirectory); }
FileSystemArchiveFile extends ArchiveFile { public String generateFilePath() { String fullPath = filesDirectory + "/" + fileName; File file = new File(fullPath); if (!file.exists()) throw new RuntimeException("The file was not found at the fileName: " + fullPath); return fullPath; } FileSystemArchiveFile(String mimeType, String originalFixity, String fileName, String filesDirectory); InputStream toStream(); File copyStreamToDirectory(String directory); String generateFilePath(); }
FileSystemArchiveFile extends ArchiveFile { public String generateFilePath() { String fullPath = filesDirectory + "/" + fileName; File file = new File(fullPath); if (!file.exists()) throw new RuntimeException("The file was not found at the fileName: " + fullPath); return fullPath; } FileSystemArchiveFile(String mimeType, String originalFixity, String fileName, String filesDirectory); InputStream toStream(); File copyStreamToDirectory(String directory); String generateFilePath();  }