@Test public void testCopyFromConfiguration() throws Exception{ final Configuration conf = HBaseConfiguration.create(); final Properties props = new Properties(); conf.set(HConstants.ZOOKEEPER_QUORUM, HConstants.LOCALHOST); conf.set(PropertiesUtilTest.SOME_OTHER_PROPERTY_KEY, PropertiesUtilTest.SOME_OTHER_PROPERTY_VALUE); Properties combinedProps = PropertiesUtil.combineProperties(props, conf); assertEquals(combinedProps.getProperty(HConstants.ZOOKEEPER_QUORUM), conf.get(HConstants.ZOOKEEPER_QUORUM)); assertEquals(combinedProps.getProperty(PropertiesUtilTest.SOME_OTHER_PROPERTY_KEY), conf.get(PropertiesUtilTest.SOME_OTHER_PROPERTY_KEY)); }
public static Properties combineProperties(Properties props, final Configuration conf) { return combineProperties(props, conf, Collections.<String>emptySet()); }
PropertiesUtil { public static Properties combineProperties(Properties props, final Configuration conf) { return combineProperties(props, conf, Collections.<String>emptySet()); } }
PropertiesUtil { public static Properties combineProperties(Properties props, final Configuration conf) { return combineProperties(props, conf, Collections.<String>emptySet()); } private  PropertiesUtil(); }
PropertiesUtil { public static Properties combineProperties(Properties props, final Configuration conf) { return combineProperties(props, conf, Collections.<String>emptySet()); } private  PropertiesUtil(); static Properties deepCopy(Properties properties); static Properties combineProperties(Properties props, final Configuration conf); static Properties combineProperties(Properties props, final Configuration conf, Set<String> withoutTheseProps); static Configuration cloneConfig(Configuration toCopy); }
PropertiesUtil { public static Properties combineProperties(Properties props, final Configuration conf) { return combineProperties(props, conf, Collections.<String>emptySet()); } private  PropertiesUtil(); static Properties deepCopy(Properties properties); static Properties combineProperties(Properties props, final Configuration conf); static Properties combineProperties(Properties props, final Configuration conf, Set<String> withoutTheseProps); static Configuration cloneConfig(Configuration toCopy);  }