jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1783646 - /jmeter/trunk/test/src/org/apache/jorphan/util/TestConverter.java
Date Sun, 19 Feb 2017 15:34:20 GMT
Author: fschumacher
Date: Sun Feb 19 15:34:20 2017
New Revision: 1783646

URL: http://svn.apache.org/viewvc?rev=1783646&view=rev
Log:
Use assertNull instead of comparing to null with assertEquals.

Modified:
    jmeter/trunk/test/src/org/apache/jorphan/util/TestConverter.java

Modified: jmeter/trunk/test/src/org/apache/jorphan/util/TestConverter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jorphan/util/TestConverter.java?rev=1783646&r1=1783645&r2=1783646&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jorphan/util/TestConverter.java (original)
+++ jmeter/trunk/test/src/org/apache/jorphan/util/TestConverter.java Sun Feb 19 15:34:20 2017
@@ -19,6 +19,7 @@
 package org.apache.jorphan.util;
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNull;
 
 import java.text.DateFormat;
 import java.util.Calendar;
@@ -79,7 +80,7 @@ public class TestConverter {
      */
     @Test
     public void testGetCalendarObjectCalendarWithInvalidStringAndNullDefault() {
-        assertEquals(null, Converter.getCalendar("invalid date", null));
+        assertNull(Converter.getCalendar("invalid date", null));
     }
 
     /**
@@ -128,7 +129,7 @@ public class TestConverter {
      */
     @Test
     public void testGetDateObjectDateWithInvalidStringAndNullDefault() {
-        assertEquals(null, Converter.getDate("invalid date", null));
+        assertNull(Converter.getDate("invalid date", null));
     }
 
 }



Mime
View raw message