diff --git a/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java b/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java index 0e9c99c65..46b282995 100644 --- a/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java +++ b/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java @@ -223,7 +223,7 @@ public class SystemPropertiesTest { @Test public void testGetUserCountry() { - assertNotNull(SystemProperties.getUserCountry()); + assertDoesNotThrow(SystemProperties::getUserCountry); } @Test