WorkingDirectory { public static OS getPlatform() { String osName = System.getProperty("os.name").toLowerCase(); if (osName.contains("win")) { return OS.WINDOWS; } if (osName.contains("mac")) { return OS.MAC; } if (osName.contains("solaris")) { return OS.SOLARIS; } if (osName.contains("sunos")) { return OS.SOLARIS; } if (System.getProperty("java.vm.name").equalsIgnoreCase("Dalvik")) { return OS.ANDROID; } if (osName.contains("linux")) { return OS.LINUX; } if (osName.contains("unix")) { return OS.LINUX; } return OS.UNKNOWN; }  static void setApplicationName(String applicationName); static File getWorkingDirectory(); static OS getPlatform(); static File getMapsFolder(); static boolean unpackMap(String foldername, InputStream source); static boolean delete(); static boolean deleteDirectory(File directory);  }
@Test public void testGetPlatform() { System.out.println("getPlatform"); WorkingDirectory.OS expResult = null; WorkingDirectory.OS result = WorkingDirectory.getPlatform(); assertTrue(!result.equals(WorkingDirectory.OS.UNKNOWN)); }