@Test public void test_loadProperties_oneFile_notRootPath() throws Exception { Properties p = ConfigUtils.loadProperties("META-INF/dubbo/internal/com.alibaba.dubbo.common.threadpool.ThreadPool", false); Properties expected = new Properties(); expected.put("fixed", "com.alibaba.dubbo.common.threadpool.support.fixed.FixedThreadPool"); expected.put("cached", "com.alibaba.dubbo.common.threadpool.support.cached.CachedThreadPool"); expected.put("limited", "com.alibaba.dubbo.common.threadpool.support.limited.LimitedThreadPool"); Assert.assertEquals(expected, p); }
public static Properties loadProperties(String fileName) { return loadProperties(fileName, false, false); }
ConfigUtils { public static Properties loadProperties(String fileName) { return loadProperties(fileName, false, false); } }
ConfigUtils { public static Properties loadProperties(String fileName) { return loadProperties(fileName, false, false); } private  ConfigUtils(); }
ConfigUtils { public static Properties loadProperties(String fileName) { return loadProperties(fileName, false, false); } private  ConfigUtils(); static boolean isNotEmpty(String value); static boolean isEmpty(String value); static boolean isDefault(String value); static List<String> mergeValues(Class<?> type, String cfg, List<String> def); static String replaceProperty(String expression, Map<String, String> params); static Properties getProperties(); static void addProperties(Properties properties); static void setProperties(Properties properties); static String getProperty(String key); @SuppressWarnings({ "unchecked", "rawtypes" }) static String getProperty(String key, String defaultValue); static Properties loadProperties(String fileName); static Properties loadProperties(String fileName, boolean allowMultiFile); static Properties loadProperties(String fileName, boolean allowMultiFile, boolean optional); static int getPid(); }
ConfigUtils { public static Properties loadProperties(String fileName) { return loadProperties(fileName, false, false); } private  ConfigUtils(); static boolean isNotEmpty(String value); static boolean isEmpty(String value); static boolean isDefault(String value); static List<String> mergeValues(Class<?> type, String cfg, List<String> def); static String replaceProperty(String expression, Map<String, String> params); static Properties getProperties(); static void addProperties(Properties properties); static void setProperties(Properties properties); static String getProperty(String key); @SuppressWarnings({ "unchecked", "rawtypes" }) static String getProperty(String key, String defaultValue); static Properties loadProperties(String fileName); static Properties loadProperties(String fileName, boolean allowMultiFile); static Properties loadProperties(String fileName, boolean allowMultiFile, boolean optional); static int getPid();  }