You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2014/01/03 10:45:31 UTC
svn commit: r1555041 -
/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/LocaleUtilsTest.java
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");