ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ant] arturobernalg commented on a change in pull request #158: Replace assert by simpler but equivalent calls.
Date Sun, 26 Sep 2021 07:04:48 GMT

arturobernalg commented on a change in pull request #158:
URL: https://github.com/apache/ant/pull/158#discussion_r716154780



##########
File path: src/tests/junit/org/apache/tools/ant/util/DeweyDecimalTest.java
##########
@@ -107,10 +107,10 @@ public void isGreaterThanOrEqual() {
     @Test
     public void equals() {
          DeweyDecimal dd = new DeweyDecimal("1.2.3");
-         assertFalse(dd.equals("other"));
-         assertFalse(dd.equals(null));
-         assertTrue(dd.equals(new DeweyDecimal("1.2.3")));
-         assertTrue(dd.equals(new DeweyDecimal("1.2.3.0")));
+        assertNotEquals("other", dd);
+        assertNotEquals(null, dd);

Review comment:
       Agree. Changed.




-- 
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: dev-unsubscribe@ant.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message