fix bug in tests

This commit is contained in:
Grahame Grieve 2020-04-27 14:27:25 +10:00
parent 7e3051535d
commit fdbcbacd1c
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ public class UtilitiesTests {
return OSX_JAVA_HOME;
} else if (os.contains(LINUX)) {
return LINUX_JAVA_HOME;
} else if (os.contains(WINDOWS)) {
} else if (os.toUpperCase().contains(WINDOWS)) {
return WIN_JAVA_HOME;
} else {
throw new IllegalStateException("OS not recognized...cannot verify created directories.");
@ -73,7 +73,7 @@ public class UtilitiesTests {
return OSX_USER_DIR;
} else if (os.contains(LINUX)) {
return LINUX_USER_DIR;
} else if (os.contains(WINDOWS)) {
} else if (os.toUpperCase().contains(WINDOWS)) {
return WIN_USER_DIR;
} else {
throw new IllegalStateException("OS not recognized...cannot verify created directories.");
@ -86,7 +86,7 @@ public class UtilitiesTests {
return getOsxTempDir();
} else if (os.contains(LINUX)) {
return LINUX_TEMP_DIR;
} else if (os.contains(WINDOWS)) {
} else if (os.toUpperCase().contains(WINDOWS)) {
return WIN_TEMP_DIR;
} else {
throw new IllegalStateException("OS not recognized...cannot verify created directories.");