@Test(expected = IllegalArgumentException.class) public void propertiesFile_shouldExist() { new PropertiesParser().parseConfigurationFile(null); }
@Override public FF4jConfiguration parseConfigurationFile(InputStream inputStream) { Util.assertNotNull(inputStream, "Cannot read file stream is empty, check readability and path."); try { Properties props = new Properties(); props.load(inputStream); return parseConfiguration(props); } catch (IOException e) { throw new IllegalArgumentException("Cannot read property files"); } }
PropertiesParser implements FF4jConfigurationParser<FF4jConfiguration> { @Override public FF4jConfiguration parseConfigurationFile(InputStream inputStream) { Util.assertNotNull(inputStream, "Cannot read file stream is empty, check readability and path."); try { Properties props = new Properties(); props.load(inputStream); return parseConfiguration(props); } catch (IOException e) { throw new IllegalArgumentException("Cannot read property files"); } } }
PropertiesParser implements FF4jConfigurationParser<FF4jConfiguration> { @Override public FF4jConfiguration parseConfigurationFile(InputStream inputStream) { Util.assertNotNull(inputStream, "Cannot read file stream is empty, check readability and path."); try { Properties props = new Properties(); props.load(inputStream); return parseConfiguration(props); } catch (IOException e) { throw new IllegalArgumentException("Cannot read property files"); } } PropertiesParser(); }
PropertiesParser implements FF4jConfigurationParser<FF4jConfiguration> { @Override public FF4jConfiguration parseConfigurationFile(InputStream inputStream) { Util.assertNotNull(inputStream, "Cannot read file stream is empty, check readability and path."); try { Properties props = new Properties(); props.load(inputStream); return parseConfiguration(props); } catch (IOException e) { throw new IllegalArgumentException("Cannot read property files"); } } PropertiesParser(); @Override InputStream export(FF4jConfiguration ff4jConfig); FF4jConfiguration parseSystemConfiguration(); @Override FF4jConfiguration parseConfigurationFile(InputStream inputStream); FF4jConfiguration parseConfiguration(Properties props); FF4jConfiguration parseConfiguration(Map<String, String> mapProperties); }
PropertiesParser implements FF4jConfigurationParser<FF4jConfiguration> { @Override public FF4jConfiguration parseConfigurationFile(InputStream inputStream) { Util.assertNotNull(inputStream, "Cannot read file stream is empty, check readability and path."); try { Properties props = new Properties(); props.load(inputStream); return parseConfiguration(props); } catch (IOException e) { throw new IllegalArgumentException("Cannot read property files"); } } PropertiesParser(); @Override InputStream export(FF4jConfiguration ff4jConfig); FF4jConfiguration parseSystemConfiguration(); @Override FF4jConfiguration parseConfigurationFile(InputStream inputStream); FF4jConfiguration parseConfiguration(Properties props); FF4jConfiguration parseConfiguration(Map<String, String> mapProperties);  }