|
@@ -42,6 +42,11 @@ public class ArrayUtilTest {
|
|
|
isEmpty = ArrayUtil.isEmpty(d);
|
|
isEmpty = ArrayUtil.isEmpty(d);
|
|
|
//noinspection ConstantConditions
|
|
//noinspection ConstantConditions
|
|
|
Assert.assertTrue(isEmpty);
|
|
Assert.assertTrue(isEmpty);
|
|
|
|
|
+
|
|
|
|
|
+ // Object数组
|
|
|
|
|
+ Object[] e = new Object[]{"1", "2", 3, 4D};
|
|
|
|
|
+ final boolean empty = ArrayUtil.isEmpty(e);
|
|
|
|
|
+ Assert.assertFalse(empty);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|