FileUtils { public static String getUserHomeDir(String base) { String userhome = System.getProperty("user.home"); File file = new File(userhome, base); if (file.exists()) { if (!file.isDirectory()) { throw new SofaRpcRuntimeException(file.getAbsolutePath() + " exists, but not directory"); } } else { file.mkdirs(); } return file.getAbsolutePath(); }  static String getBaseDirName(); static String getUserHomeDir(String base); static String file2String(File file); static String file2String(Class clazz, String relativePath, String encoding); static List<String> readLines(File file); static boolean string2File(File file, String data); static boolean cleanDirectory(File dir); static final String LINE_SEPARATOR; }
@Test public void getUserHomeDir() throws Exception { }