@Test public void testReadStrategiesWithNullConfiguration() { final EntityOwnerSelectionStrategyConfig config = EntityOwnerSelectionStrategyConfigReader .loadStrategyWithConfig(null); assertFalse(config.isStrategyConfigured("test")); }
@SuppressWarnings("checkstyle:IllegalCatch") public static EntityOwnerSelectionStrategyConfig loadStrategyWithConfig(final Map<Object, Object> props) { final EntityOwnerSelectionStrategyConfig.Builder builder = EntityOwnerSelectionStrategyConfig.newBuilder(); if (props != null && !props.isEmpty()) { parseConfiguration(builder, props); } else { if (props == null) { LOG.debug("Could not read strategy configuration file, will use default configuration."); } else { LOG.debug("Configuration file is empty, will use default configuration."); } } return builder.build(); }
EntityOwnerSelectionStrategyConfigReader { @SuppressWarnings("checkstyle:IllegalCatch") public static EntityOwnerSelectionStrategyConfig loadStrategyWithConfig(final Map<Object, Object> props) { final EntityOwnerSelectionStrategyConfig.Builder builder = EntityOwnerSelectionStrategyConfig.newBuilder(); if (props != null && !props.isEmpty()) { parseConfiguration(builder, props); } else { if (props == null) { LOG.debug("Could not read strategy configuration file, will use default configuration."); } else { LOG.debug("Configuration file is empty, will use default configuration."); } } return builder.build(); } }
EntityOwnerSelectionStrategyConfigReader { @SuppressWarnings("checkstyle:IllegalCatch") public static EntityOwnerSelectionStrategyConfig loadStrategyWithConfig(final Map<Object, Object> props) { final EntityOwnerSelectionStrategyConfig.Builder builder = EntityOwnerSelectionStrategyConfig.newBuilder(); if (props != null && !props.isEmpty()) { parseConfiguration(builder, props); } else { if (props == null) { LOG.debug("Could not read strategy configuration file, will use default configuration."); } else { LOG.debug("Configuration file is empty, will use default configuration."); } } return builder.build(); } private  EntityOwnerSelectionStrategyConfigReader(); }
EntityOwnerSelectionStrategyConfigReader { @SuppressWarnings("checkstyle:IllegalCatch") public static EntityOwnerSelectionStrategyConfig loadStrategyWithConfig(final Map<Object, Object> props) { final EntityOwnerSelectionStrategyConfig.Builder builder = EntityOwnerSelectionStrategyConfig.newBuilder(); if (props != null && !props.isEmpty()) { parseConfiguration(builder, props); } else { if (props == null) { LOG.debug("Could not read strategy configuration file, will use default configuration."); } else { LOG.debug("Configuration file is empty, will use default configuration."); } } return builder.build(); } private  EntityOwnerSelectionStrategyConfigReader(); @SuppressWarnings("checkstyle:IllegalCatch") static EntityOwnerSelectionStrategyConfig loadStrategyWithConfig(final Map<Object, Object> props); }
EntityOwnerSelectionStrategyConfigReader { @SuppressWarnings("checkstyle:IllegalCatch") public static EntityOwnerSelectionStrategyConfig loadStrategyWithConfig(final Map<Object, Object> props) { final EntityOwnerSelectionStrategyConfig.Builder builder = EntityOwnerSelectionStrategyConfig.newBuilder(); if (props != null && !props.isEmpty()) { parseConfiguration(builder, props); } else { if (props == null) { LOG.debug("Could not read strategy configuration file, will use default configuration."); } else { LOG.debug("Configuration file is empty, will use default configuration."); } } return builder.build(); } private  EntityOwnerSelectionStrategyConfigReader(); @SuppressWarnings("checkstyle:IllegalCatch") static EntityOwnerSelectionStrategyConfig loadStrategyWithConfig(final Map<Object, Object> props);  }