Re: [PR] Convert dom.mem.Test to JUnit [xerces-j]

mrglavas (via GitHub) <[email protected]> Fri, 17 Jul 2026 15:10:42 -0000
Newsgroups gmane.text.xml.xerces-j.devel
Message-ID <PR_kwDOLzdO6M7vBPAl-32d5a136-a742-45b7-937a-04913e5b26ae@gitbox.apache.org>
mrglavas commented on code in PR #104:
URL: https://github.com/apache/xerces-j/pull/104#discussion_r3604175556


##########
tests/dom/mem/Test.java:
##########
@@ -446,24 +436,24 @@ public static void main(String argv[])
     {
         NodeList    nl = null;
         NodeList    nl2 = null;
-        Assertion.verify(nl == null);
-        Assertion.verify(!(nl != null));
-        Assertion.verify(nl == nl2);
+        assertNull(nl);
+        assertNull(nl);

Review Comment:
   Same comment here about redundant checks.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]