@Test public void isWindows() { String osName = System.getProperty("os.name").toLowerCase(); Assert.assertEquals(osName.contains("windows"), SystemInfo.isWindows()); Assert.assertEquals(osName.contains("linux"), SystemInfo.isLinux()); Assert.assertEquals(osName.contains("mac"), SystemInfo.isMac()); }
public static boolean isWindows() { return IS_WINDOWS; }
SystemInfo { public static boolean isWindows() { return IS_WINDOWS; } }
SystemInfo { public static boolean isWindows() { return IS_WINDOWS; }  }
SystemInfo { public static boolean isWindows() { return IS_WINDOWS; }  static boolean isWindows(); static Boolean isLinux(); static boolean isMac(); static int getCpuCores(); static String getLocalHost(); static void setLocalHost(String localhost); static String getHostMachine(); }
SystemInfo { public static boolean isWindows() { return IS_WINDOWS; }  static boolean isWindows(); static Boolean isLinux(); static boolean isMac(); static int getCpuCores(); static String getLocalHost(); static void setLocalHost(String localhost); static String getHostMachine();  }