Systems { public static File getUserHome() { return new File(System.getProperty(USER_HOME_KEY)); } private  Systems(); static boolean isJavaVersionAtLeast(int requiredVersion); static File getJavaHome(); static File getJavaIoTmpDir(); static File getUserDir(); static File getUserHome(); static final String AWT_TOOLKIT; static final String FILE_ENCODING; static final String FILE_SEPARATOR; static final String JAVA_AWT_PRINTERJOB; static final String JAVA_CLASS_PATH; static final String JAVA_CLASS_VERSION; static final String JAVA_ENDORSED_DIRS; static final String JAVA_EXT_DIRS; static final String JAVA_HOME; static final String JAVA_IO_TMPDIR; static final String JAVA_LIBRARY_PATH; static final String JAVA_RUNTIME_NAME; static final String JAVA_RUNTIME_VERSION; static final String JAVA_SPECIFICATION_NAME; static final String JAVA_SPECIFICATION_VENDOR; static final String JAVA_SPECIFICATION_VERSION; static final String JAVA_UTIL_PREFS_PREFERENCES_FACTORY; static final String JAVA_VENDOR; static final String JAVA_VENDOR_URL; static final String JAVA_VERSION; static final String JAVA_VM_INFO; static final String JAVA_VM_NAME; static final String JAVA_VM_SPECIFICATION_NAME; static final String JAVA_VM_SPECIFICATION_VENDOR; static final String JAVA_VM_SPECIFICATION_VERSION; static final String JAVA_VM_VENDOR; static final String JAVA_VM_VERSION; static final String LINE_SEPARATOR; static final String OS_ARCH; static final String OS_NAME; static final String OS_VERSION; static final String PATH_SEPARATOR; static final String USER_COUNTRY; static final String USER_DIR; static final String USER_HOME; static final String USER_LANGUAGE; static final String USER_NAME; static final String USER_TIMEZONE; static final String JAVA_VERSION_TRIMMED; static final int JAVA_VERSION_INT; static final boolean IS_JAVA_1_1; static final boolean IS_JAVA_1_2; static final boolean IS_JAVA_1_3; static final boolean IS_JAVA_1_4; static final boolean IS_JAVA_1_5; static final boolean IS_JAVA_1_6; static final boolean IS_OS_AIX; static final boolean IS_OS_HP_UX; static final boolean IS_OS_IRIX; static final boolean IS_OS_LINUX; static final boolean IS_OS_MAC; static final boolean IS_OS_MAC_OSX; static final boolean IS_OS_OS2; static final boolean IS_OS_SOLARIS; static final boolean IS_OS_SUN_OS; static final boolean IS_OS_UNIX; static final boolean IS_OS_WINDOWS; static final boolean IS_OS_WINDOWS_2000; static final boolean IS_OS_WINDOWS_95; static final boolean IS_OS_WINDOWS_98; static final boolean IS_OS_WINDOWS_ME; static final boolean IS_OS_WINDOWS_NT; static final boolean IS_OS_WINDOWS_XP; }
@Test public void testHome() { System.out.println(Systems.getUserHome()); }