|
|
|
@ -11,9 +11,40 @@ public class ArrayKitTest extends Prepare {
|
|
|
|
|
public void isEmpty() throws Exception{ |
|
|
|
|
Object[] emptyArray = new Object[0]; |
|
|
|
|
Object[] notEmptyArray = new Object[1]; |
|
|
|
|
Boolean[] booleanEmptyArray = new Boolean[0]; |
|
|
|
|
Boolean[] booleanNotEmptyArray = new Boolean[1]; |
|
|
|
|
Byte[] byteEmptyArray = new Byte[0]; |
|
|
|
|
Byte[] byteNotEmptyArray = new Byte[1]; |
|
|
|
|
Character[] charEmptyArray = new Character[0]; |
|
|
|
|
Character[] charNotEmptyArray = new Character[1]; |
|
|
|
|
Double[] doubleEmptyArray = new Double[0]; |
|
|
|
|
Double[] doubleNotEmptyArray = new Double[1]; |
|
|
|
|
Float[] floatEmptyArray = new Float[0]; |
|
|
|
|
Float[] floatNotEmptyArray = new Float[1]; |
|
|
|
|
Integer[] intEmptyArray = new Integer[0]; |
|
|
|
|
Integer[] intNotEmptyArray = new Integer[1]; |
|
|
|
|
Long[] longEmptyArray = new Long[0]; |
|
|
|
|
Long[] longNotEmptyArray = new Long[1]; |
|
|
|
|
Short[] shortEmptyArray = new Short[0]; |
|
|
|
|
Short[] shortNotEmptyArray = new Short[1]; |
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(emptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(notEmptyArray)); |
|
|
|
|
|
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(booleanEmptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(booleanNotEmptyArray)); |
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(byteEmptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(byteNotEmptyArray)); |
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(charEmptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(charNotEmptyArray)); |
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(doubleEmptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(doubleNotEmptyArray)); |
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(floatEmptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(floatNotEmptyArray)); |
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(intEmptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(intNotEmptyArray)); |
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(longEmptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(longNotEmptyArray)); |
|
|
|
|
Assert.assertTrue(ArrayKit.isEmpty(shortEmptyArray)); |
|
|
|
|
Assert.assertFalse(ArrayKit.isEmpty(shortNotEmptyArray)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|