diff options
author | Gary Gregory <garydgregory@gmail.com> | 2024-05-30 14:33:14 -0400 |
---|---|---|
committer | Gary Gregory <garydgregory@gmail.com> | 2024-05-30 14:33:14 -0400 |
commit | ff66cce0ca10046727e594e0beeed7924dfc7a41 (patch) | |
tree | 9632c4cec018bde2898c51a6f042f19d73fb34ff /src/test/java/org/apache/commons | |
parent | d0bb31bc10ac0e16f47840550860ca26f01c5595 (diff) | |
download | apache-commons-lang-ff66cce0ca10046727e594e0beeed7924dfc7a41.tar.gz |
Add SystemUtils.IS_OS_MAC_OSX_SONOMA
Diffstat (limited to 'src/test/java/org/apache/commons')
-rw-r--r-- | src/test/java/org/apache/commons/lang3/SystemUtilsTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java b/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java index 8618d6744..ec4b04807 100644 --- a/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/SystemUtilsTest.java @@ -168,6 +168,16 @@ public class SystemUtilsTest extends AbstractLangTest { assertTrue(SystemUtils.IS_OS_UNIX); assertFalse(SystemUtils.IS_OS_ANDROID); assertFalse(SystemUtils.IS_OS_WINDOWS); + final boolean macOsValues[] = { SystemUtils.IS_OS_MAC_OSX_BIG_SUR, SystemUtils.IS_OS_MAC_OSX_CATALINA, SystemUtils.IS_OS_MAC_OSX_CHEETAH, + SystemUtils.IS_OS_MAC_OSX_EL_CAPITAN, SystemUtils.IS_OS_MAC_OSX_HIGH_SIERRA, SystemUtils.IS_OS_MAC_OSX_JAGUAR, + SystemUtils.IS_OS_MAC_OSX_LEOPARD, SystemUtils.IS_OS_MAC_OSX_LION, SystemUtils.IS_OS_MAC_OSX_MAVERICKS, SystemUtils.IS_OS_MAC_OSX_MOJAVE, + SystemUtils.IS_OS_MAC_OSX_MONTEREY, SystemUtils.IS_OS_MAC_OSX_MOUNTAIN_LION, SystemUtils.IS_OS_MAC_OSX_PANTHER, + SystemUtils.IS_OS_MAC_OSX_PUMA, SystemUtils.IS_OS_MAC_OSX_SIERRA, SystemUtils.IS_OS_MAC_OSX_SNOW_LEOPARD, SystemUtils.IS_OS_MAC_OSX_SONOMA, + SystemUtils.IS_OS_MAC_OSX_TIGER, SystemUtils.IS_OS_MAC_OSX_VENTURA, SystemUtils.IS_OS_MAC_OSX_YOSEMITE }; + if (BooleanUtils.or(macOsValues)) { + // If one is true, then only one should be true. + assertTrue(BooleanUtils.xor(macOsValues)); + } } else if (osName.startsWith("OS/2")) { assertTrue(SystemUtils.IS_OS_OS2); assertFalse(SystemUtils.IS_OS_UNIX); |