@Test(expected = IOException.class) public void loadConfigurationFromInvalidPath() throws IOException { String configFilePath = "invalid_path/invalid.json"; JsonConfigurationLoader loader = new JsonConfigurationLoader(); loader.loadFileConfiguration(configFilePath); }
@Override public Configuration loadFileConfiguration(String filePath) throws IOException { File configurationFile = new File(filePath); String configurationJson = FileUtils.readFileToString(configurationFile); return loadJsonConfiguration(configurationJson); }
JsonConfigurationLoader implements ConfigurationLoader { @Override public Configuration loadFileConfiguration(String filePath) throws IOException { File configurationFile = new File(filePath); String configurationJson = FileUtils.readFileToString(configurationFile); return loadJsonConfiguration(configurationJson); } }
JsonConfigurationLoader implements ConfigurationLoader { @Override public Configuration loadFileConfiguration(String filePath) throws IOException { File configurationFile = new File(filePath); String configurationJson = FileUtils.readFileToString(configurationFile); return loadJsonConfiguration(configurationJson); }  }
JsonConfigurationLoader implements ConfigurationLoader { @Override public Configuration loadFileConfiguration(String filePath) throws IOException { File configurationFile = new File(filePath); String configurationJson = FileUtils.readFileToString(configurationFile); return loadJsonConfiguration(configurationJson); }  @Override Configuration loadFileConfiguration(String filePath); @Override Configuration loadJsonConfiguration(String json); }
JsonConfigurationLoader implements ConfigurationLoader { @Override public Configuration loadFileConfiguration(String filePath) throws IOException { File configurationFile = new File(filePath); String configurationJson = FileUtils.readFileToString(configurationFile); return loadJsonConfiguration(configurationJson); }  @Override Configuration loadFileConfiguration(String filePath); @Override Configuration loadJsonConfiguration(String json);  }