@Test public void testParseContentFile() throws IOException { final File contentFile = new File( "./src/test/resources/images/bird_1/contents.properties"); final String[] files = FileHelper.parseContentFile(contentFile); Assert.assertEquals("2 files expected", 2, files.length); Assert.assertEquals("1.jpg", files[0]); Assert.assertEquals("2.jpg", files[1]); }
public static String[] parseContentFile(final File contentFile) throws FileNotFoundException, IOException { final FileInputStream fis = new FileInputStream(contentFile); final Properties properties = new Properties(); properties.load(fis); final String files = StringHelper.defaultString(properties .getProperty(FILES_PROPERTY_KEY)); return StringHelper.split(files, FILES_SEPARATOR_PROPERTY_VALUE); }
FileHelper { public static String[] parseContentFile(final File contentFile) throws FileNotFoundException, IOException { final FileInputStream fis = new FileInputStream(contentFile); final Properties properties = new Properties(); properties.load(fis); final String files = StringHelper.defaultString(properties .getProperty(FILES_PROPERTY_KEY)); return StringHelper.split(files, FILES_SEPARATOR_PROPERTY_VALUE); } }
FileHelper { public static String[] parseContentFile(final File contentFile) throws FileNotFoundException, IOException { final FileInputStream fis = new FileInputStream(contentFile); final Properties properties = new Properties(); properties.load(fis); final String files = StringHelper.defaultString(properties .getProperty(FILES_PROPERTY_KEY)); return StringHelper.split(files, FILES_SEPARATOR_PROPERTY_VALUE); } private  FileHelper(); }
FileHelper { public static String[] parseContentFile(final File contentFile) throws FileNotFoundException, IOException { final FileInputStream fis = new FileInputStream(contentFile); final Properties properties = new Properties(); properties.load(fis); final String files = StringHelper.defaultString(properties .getProperty(FILES_PROPERTY_KEY)); return StringHelper.split(files, FILES_SEPARATOR_PROPERTY_VALUE); } private  FileHelper(); static void createEmptyFile(final File file); static int folderSize(File directory, boolean recursive); static void doCopyFile(final File srcFile, final File destFile); static void forceDelete(final File file); static void forceMkdir(final File directory); static void moveDirectory(final File srcDir, final File destDir); static String[] parseContentFile(final File contentFile); static void writeStringToFile(final File file, final String data,
			final Charset encoding, final boolean append); static boolean unzipFile(String zipname, String destDir); static int getFileSizeInMb(File downloadedFile); static int getCountFiles(File fileToCheck); }
FileHelper { public static String[] parseContentFile(final File contentFile) throws FileNotFoundException, IOException { final FileInputStream fis = new FileInputStream(contentFile); final Properties properties = new Properties(); properties.load(fis); final String files = StringHelper.defaultString(properties .getProperty(FILES_PROPERTY_KEY)); return StringHelper.split(files, FILES_SEPARATOR_PROPERTY_VALUE); } private  FileHelper(); static void createEmptyFile(final File file); static int folderSize(File directory, boolean recursive); static void doCopyFile(final File srcFile, final File destFile); static void forceDelete(final File file); static void forceMkdir(final File directory); static void moveDirectory(final File srcDir, final File destDir); static String[] parseContentFile(final File contentFile); static void writeStringToFile(final File file, final String data,
			final Charset encoding, final boolean append); static boolean unzipFile(String zipname, String destDir); static int getFileSizeInMb(File downloadedFile); static int getCountFiles(File fileToCheck); static final long ONE_KB; static final long ONE_MB; }