added Windows 10 support
This commit is contained in:
@ -23,17 +23,18 @@ public class OSUtilTest {
|
||||
public void testGetOS() {
|
||||
String osName = getProperties().getProperty("os.name").toUpperCase();
|
||||
int os = getOperationSystem();
|
||||
|
||||
|
||||
switch (osName) {
|
||||
case "LINUX":
|
||||
assertTrue(os == OSUtil.OS_LINUX);
|
||||
break;
|
||||
case "WINDOWS":
|
||||
case "WINDOWS 7":
|
||||
case "WINDOWS 10":
|
||||
assertTrue(os == OSUtil.OS_WINDOWS);
|
||||
break;
|
||||
default:
|
||||
fail("Unknown / unsupported OS for test case");
|
||||
fail("Unknown / unsupported OS " + osName + " for test case");
|
||||
}
|
||||
|
||||
System.out.println(osName);
|
||||
|
||||
Reference in New Issue
Block a user