Added nullhandling tests for isEquals.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
23b6d90ccf
commit
1e818f6bbd
|
@ -73,7 +73,7 @@ import junit.textui.TestRunner;
|
|||
* @author Matthew Hawthorne
|
||||
* @author Tim O'Brien
|
||||
* @author <a href="mailto:equinus100@hotmail.com">Ashwin S</a>
|
||||
* @version $Id: ArrayUtilsTest.java,v 1.18 2003/12/05 23:37:18 scolebourne Exp $
|
||||
* @version $Id: ArrayUtilsTest.java,v 1.19 2004/01/08 17:54:28 fredrik Exp $
|
||||
*/
|
||||
public class ArrayUtilsTest extends TestCase {
|
||||
|
||||
|
@ -148,6 +148,9 @@ public class ArrayUtilsTest extends TestCase {
|
|||
Object[] array4 = new Object[] {"AB"};
|
||||
assertEquals(true, ArrayUtils.isEquals(array3, array3));
|
||||
assertEquals(true, ArrayUtils.isEquals(array3, array4));
|
||||
|
||||
assertEquals(true, ArrayUtils.isEquals(null, null));
|
||||
assertEquals(false, ArrayUtils.isEquals(null, array4));
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue