@Test public void isBinaryPersistenceEnabled() throws Exception { Map<String, String> properties = new HashMap<>(1); assertThat(ConfigFileUtil.isBinaryPersistenceEnabled(properties)).isFalse(); properties.put(BINARY_PERSISTENCE_PROPERTY, Boolean.FALSE.toString()); assertThat(ConfigFileUtil.isBinaryPersistenceEnabled(properties)).isFalse(); properties.put(BINARY_PERSISTENCE_PROPERTY, Boolean.TRUE.toString()); assertThat(ConfigFileUtil.isBinaryPersistenceEnabled(properties)).isTrue(); }
public static boolean isBinaryPersistenceEnabled(Map<String, String> properties) { return Boolean.valueOf(properties.getOrDefault(BINARY_PERSISTENCE_PROPERTY, Boolean.FALSE.toString())); }
ConfigFileUtil { public static boolean isBinaryPersistenceEnabled(Map<String, String> properties) { return Boolean.valueOf(properties.getOrDefault(BINARY_PERSISTENCE_PROPERTY, Boolean.FALSE.toString())); } }
ConfigFileUtil { public static boolean isBinaryPersistenceEnabled(Map<String, String> properties) { return Boolean.valueOf(properties.getOrDefault(BINARY_PERSISTENCE_PROPERTY, Boolean.FALSE.toString())); } private  ConfigFileUtil(); }
ConfigFileUtil { public static boolean isBinaryPersistenceEnabled(Map<String, String> properties) { return Boolean.valueOf(properties.getOrDefault(BINARY_PERSISTENCE_PROPERTY, Boolean.FALSE.toString())); } private  ConfigFileUtil(); static Map<String, String> loadConfig(String config); static boolean isMetricPersistenceEnabled(Map<String, String> properties); static boolean isLogPersistenceEnabled(Map<String, String> properties); static boolean isBinaryPersistenceEnabled(Map<String, String> properties); }
ConfigFileUtil { public static boolean isBinaryPersistenceEnabled(Map<String, String> properties) { return Boolean.valueOf(properties.getOrDefault(BINARY_PERSISTENCE_PROPERTY, Boolean.FALSE.toString())); } private  ConfigFileUtil(); static Map<String, String> loadConfig(String config); static boolean isMetricPersistenceEnabled(Map<String, String> properties); static boolean isLogPersistenceEnabled(Map<String, String> properties); static boolean isBinaryPersistenceEnabled(Map<String, String> properties); static final String CONFIG_DIR; static final String METRIC_PERSISTENCE_PROPERTY; static final String LOG_PERSISTENCE_PROPERTY; static final String BINARY_PERSISTENCE_PROPERTY; }