commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1555041 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java
Date Fri, 03 Jan 2014 09:45:31 GMT
Author: britter
Date: Fri Jan  3 09:45:30 2014
New Revision: 1555041

URL: http://svn.apache.org/r1555041
Log:
Use assertNull instead of comparing to null

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java?rev=1555041&r1=1555040&r2=1555041&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java
Fri Jan  3 09:45:30 2014
@@ -20,6 +20,7 @@ import static org.apache.commons.lang3.J
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertSame;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
@@ -128,7 +129,7 @@ public class LocaleUtilsTest  {
      */
     @Test
     public void testToLocale_1Part() {
-        assertEquals(null, LocaleUtils.toLocale((String) null));
+        assertNull(LocaleUtils.toLocale((String) null));
         
         assertValidToLocale("us");
         assertValidToLocale("fr");



Mime
View raw message