@Test public void testLoadEmptyFile() throws Exception { File file = new File("src/test/resources/instructions/empty.bnd"); assertThat(Instructions.load(file)).isEmpty(); }
public static Properties load(File file) throws IOException { if (file.isFile()) { FileInputStream fis = null; try { Properties headers = new Properties(); fis = new FileInputStream(file); headers.load(fis); return headers; } finally { IOUtils.closeQuietly(fis); } } return new Properties(); }
Instructions { public static Properties load(File file) throws IOException { if (file.isFile()) { FileInputStream fis = null; try { Properties headers = new Properties(); fis = new FileInputStream(file); headers.load(fis); return headers; } finally { IOUtils.closeQuietly(fis); } } return new Properties(); } }
Instructions { public static Properties load(File file) throws IOException { if (file.isFile()) { FileInputStream fis = null; try { Properties headers = new Properties(); fis = new FileInputStream(file); headers.load(fis); return headers; } finally { IOUtils.closeQuietly(fis); } } return new Properties(); } private  Instructions(); }
Instructions { public static Properties load(File file) throws IOException { if (file.isFile()) { FileInputStream fis = null; try { Properties headers = new Properties(); fis = new FileInputStream(file); headers.load(fis); return headers; } finally { IOUtils.closeQuietly(fis); } } return new Properties(); } private  Instructions(); static Properties merge(Properties properties, File extra); static Properties mergeAndOverrideExisting(Properties props1, Properties props2); static Properties mergeAndSkipExisting(Properties props1, Properties props2); static Properties load(File file); static Properties sanitize(Properties properties); }
Instructions { public static Properties load(File file) throws IOException { if (file.isFile()) { FileInputStream fis = null; try { Properties headers = new Properties(); fis = new FileInputStream(file); headers.load(fis); return headers; } finally { IOUtils.closeQuietly(fis); } } return new Properties(); } private  Instructions(); static Properties merge(Properties properties, File extra); static Properties mergeAndOverrideExisting(Properties props1, Properties props2); static Properties mergeAndSkipExisting(Properties props1, Properties props2); static Properties load(File file); static Properties sanitize(Properties properties);  }