@Test public void testIsWindows() throws Exception { assertThat(ExecUtils.isWindows("Windows 95")).isTrue(); assertThat(ExecUtils.isWindows("Windows 98")).isTrue(); assertThat(ExecUtils.isWindows("Windows Me")).isTrue(); assertThat(ExecUtils.isWindows("Windows NT")).isTrue(); assertThat(ExecUtils.isWindows("Windows 2000")).isTrue(); assertThat(ExecUtils.isWindows("Windows XP")).isTrue(); assertThat(ExecUtils.isWindows("Windows 2003")).isTrue(); assertThat(ExecUtils.isWindows("Windows 8")).isTrue(); assertThat(ExecUtils.isWindows("Windows 8.1")).isTrue(); assertThat(ExecUtils.isWindows("Linux")).isFalse(); }
public static boolean isWindows() { return isWindows(System.getProperty("os.name")); }
ExecUtils { public static boolean isWindows() { return isWindows(System.getProperty("os.name")); } }
ExecUtils { public static boolean isWindows() { return isWindows(System.getProperty("os.name")); }  }
ExecUtils { public static boolean isWindows() { return isWindows(System.getProperty("os.name")); }  static File find(String executable, File... dirs); static File findExecutableInDirectory(String executable, File directory); static File findExecutableInSystemPath(String executable); static boolean isWindows(); static boolean isWindows(String os); static boolean isMac(); static boolean isMac(String os); static boolean isLinux(); static boolean isLinux(String os); static boolean is64bits(); static boolean is64bits(String arch); static boolean isARM(); }
ExecUtils { public static boolean isWindows() { return isWindows(System.getProperty("os.name")); }  static File find(String executable, File... dirs); static File findExecutableInDirectory(String executable, File directory); static File findExecutableInSystemPath(String executable); static boolean isWindows(); static boolean isWindows(String os); static boolean isMac(); static boolean isMac(String os); static boolean isLinux(); static boolean isLinux(String os); static boolean is64bits(); static boolean is64bits(String arch); static boolean isARM();  }