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:
parent
c99a4a3ee2
commit
02b55d4ff3
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue