fix bug in tests
This commit is contained in:
parent
7e3051535d
commit
fdbcbacd1c
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue