@@ -0,0 +1,1571 @@
+package com.alibaba.json.bvt;%0A%0Aimport java.util.Arrays;%0A%0Aimport org.junit.Assert;%0A%0Aimport com.alibaba.fastjson.JSONArray;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class JSONArrayTest3 extends TestCase %7B%0A    public void test_0() throws Exception %7B%0A        JSONArray array = new JSONArray();%0A        array.set(1, %221001%22);%0A        Assert.assertEquals(2, array.size());%0A        Assert.assertNull(array.get(0));%0A        Assert.assertEquals(%221001%22, array.get(1));%0A        %0A        array.clear();%0A        Assert.assertEquals(0, array.size());%0A        %0A        array.set(-1, %221001%22);%0A        Assert.assertEquals(1, array.size());%0A        Assert.assertEquals(%221001%22, array.get(0));%0A        %0A        array.fluentAdd(%221002%22).fluentClear();%0A        Assert.assertEquals(0, array.size());%0A        %0A        array.fluentAdd(%221002%22).fluentRemove(%221002%22);%0A        Assert.assertEquals(0, array.size());%0A        %0A        array.fluentAdd(%221002%22).fluentRemove(0);%0A        Assert.assertEquals(0, array.size());%0A        %0A        array.fluentSet(1, %221001%22);%0A        Assert.assertEquals(2, array.size());%0A        Assert.assertNull(array.get(0));%0A        Assert.assertEquals(%221001%22, array.get(1));%0A%0A        array.fluentRemoveAll(Arrays.asList(null, %221001%22));%0A        Assert.assertEquals(0, array.size());%0A        %0A        array.fluentAddAll(Arrays.asList(%221001%22, %221002%22, %221003%22));%0A        Assert.assertEquals(3, array.size());%0A        %0A        array.retainAll(Arrays.asList(%221002%22, %221004%22));%0A        Assert.assertEquals(1, array.size());%0A        Assert.assertEquals(%221002%22, array.get(0));%0A    %7D%0A%7D%0A

add testcase