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

garydgregory 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 87b7b3a26 Better use of JUnit API.
87b7b3a26 is described below

commit 87b7b3a26390f4a095f63b9f7b1baf0689a22634
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jul 27 15:17:24 2026 +0000

    Better use of JUnit API.
---
 src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java 
b/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java
index 2381019de..5e54d599e 100644
--- a/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java
+++ b/src/test/java/org/apache/commons/lang3/text/StrBuilderTest.java
@@ -76,7 +76,7 @@ public int isMatch(final char[] buffer, int pos, final int 
bufferStart, final in
     void test_LANG_1131_EqualsWithNullStrBuilder() {
         final StrBuilder sb = new StrBuilder();
         final StrBuilder other = null;
-        assertFalse(sb.equals(other));
+        assertNotEquals(sb, other);
     }
 
     @Test
@@ -662,11 +662,11 @@ void testEquals() {
         assertEquals(sb1, sb2);
 
         sb1.append("abc");
-        assertFalse(sb1.equals(sb2));
+        assertNotEquals(sb1, sb2);
         assertNotEquals(sb1, sb2);
 
         sb2.append("ABC");
-        assertFalse(sb1.equals(sb2));
+        assertNotEquals(sb1, sb2);
         assertNotEquals(sb1, sb2);
 
         sb2.clear().append("abc");

Reply via email to