This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 3be8aba2d Use better JUnit API
     new be6501ef4 Merge branch 'master' of 
https://gitbox.apache.org/repos/asf/commons-lang.git
3be8aba2d is described below

commit 3be8aba2da11bdbbfa1e8a91fb12433b31e45d8b
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Mar 22 16:23:42 2024 -0400

    Use better JUnit API
---
 src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java 
b/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java
index 813fbb2ae..e6cd94bc5 100644
--- a/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java
+++ b/src/test/java/org/apache/commons/lang3/SystemPropertiesTest.java
@@ -19,6 +19,7 @@ package org.apache.commons.lang3;
 
 import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
 import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertNull;
 import static org.junit.jupiter.api.Assumptions.assumeTrue;
@@ -45,8 +46,8 @@ public class SystemPropertiesTest {
             System.setProperty(key, Boolean.toString(Boolean.TRUE));
             assertEquals(Boolean.TRUE, SystemProperties.getBoolean(key, () -> 
false));
             assertEquals(Boolean.TRUE, SystemProperties.getBoolean(absentKey, 
() -> Boolean.TRUE));
-            assertEquals(false, SystemProperties.getBoolean(absentKey, () -> 
false));
-            assertEquals(false, SystemProperties.getBoolean(absentKey, null));
+            assertFalse(SystemProperties.getBoolean(absentKey, () -> false));
+            assertFalse(SystemProperties.getBoolean(absentKey, null));
         } finally {
             System.clearProperty(key);
         }

Reply via email to