Use assertNull instead of comparing to null

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1555041 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benedikt Ritter 2014-01-03 09:45:30 +00:00
parent c99a4a3ee2
commit 02b55d4ff3
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ import static org.apache.commons.lang3.JavaVersion.JAVA_1_4;
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");