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-scxml.git


The following commit(s) were added to refs/heads/master by this push:
     new 7bfbd869 Use better JUnit API
7bfbd869 is described below

commit 7bfbd8697552e8f4d482e32d967b97cedb3d1f0e
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Mar 22 16:37:02 2024 -0400

    Use better JUnit API
---
 src/test/java/org/apache/commons/scxml2/io/ContentParserTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/scxml2/io/ContentParserTest.java 
b/src/test/java/org/apache/commons/scxml2/io/ContentParserTest.java
index fb6d2ff1..bbfac624 100644
--- a/src/test/java/org/apache/commons/scxml2/io/ContentParserTest.java
+++ b/src/test/java/org/apache/commons/scxml2/io/ContentParserTest.java
@@ -54,7 +54,7 @@ public class ContentParserTest {
 
     @Test
     public void testSpaceNormalizeContent() {
-        Assertions.assertEquals(null, 
ContentParser.spaceNormalizeContent(null));
+        Assertions.assertNull(ContentParser.spaceNormalizeContent(null));
         Assertions.assertEquals("", ContentParser.spaceNormalizeContent(""));
         Assertions.assertEquals("a", ContentParser.spaceNormalizeContent("a"));
         Assertions.assertEquals("a", ContentParser.spaceNormalizeContent(" 
a"));
@@ -65,7 +65,7 @@ public class ContentParserTest {
 
     @Test
     public void testTrimContent() {
-        Assertions.assertEquals(null, ContentParser.trimContent(null));
+        Assertions.assertNull(ContentParser.trimContent(null));
         Assertions.assertEquals("", ContentParser.trimContent(""));
         Assertions.assertEquals("", ContentParser.trimContent(" "));
         Assertions.assertEquals("", ContentParser.trimContent("  "));

Reply via email to