@@ -0,0 +1,2384 @@
+package com.alibaba.json.bvt.parser;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Random;%0A%0Aimport org.junit.Assert;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.TypeReference;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class BigStringFieldTest extends TestCase %7B%0A    public void test_bigFieldString() throws Exception %7B%0A        Model model = new Model();%0A        model.f0 = random(1024);%0A        model.f1 = random(1024);%0A        model.f2 = random(1024);%0A        model.f3 = random(1024);%0A        model.f4 = random(1024);%0A        %0A        String text = JSON.toJSONString(model);%0A        Model model2 = JSON.parseObject(text, Model.class);%0A        Assert.assertEquals(model2.f0, model.f0);%0A        Assert.assertEquals(model2.f1, model.f1);%0A        Assert.assertEquals(model2.f2, model.f2);%0A        Assert.assertEquals(model2.f3, model.f3);%0A        Assert.assertEquals(model2.f4, model.f4);%0A    %7D%0A    %0A    public void test_list() throws Exception %7B%0A        List%3CModel%3E list = new ArrayList%3CModel%3E();%0A        for (int i = 0; i %3C 1000; ++i) %7B%0A            Model model = new Model();%0A            model.f0 = random(64);%0A            model.f1 = random(64);%0A            model.f2 = random(64);%0A            model.f3 = random(64);%0A            model.f4 = random(64);%0A            list.add(model);%0A        %7D%0A        String text = JSON.toJSONString(list);%0A        List%3CModel%3E list2 = JSON.parseObject(text, new TypeReference%3CList%3CModel%3E%3E() %7B%7D);%0A        Assert.assertEquals(list.size(), list2.size());%0A        for (int i = 0; i %3C 1000; ++i) %7B%0A            Assert.assertEquals(list.get(i).f0, list2.get(i).f0);    %0A            Assert.assertEquals(list.get(i).f1, list2.get(i).f1);    %0A            Assert.assertEquals(list.get(i).f2, list2.get(i).f2);    %0A            Assert.assertEquals(list.get(i).f3, list2.get(i).f3);    %0A            Assert.assertEquals(list.get(i).f4, list2.get(i).f4);    %0A        %7D%0A    %7D%0A    %0A    public String random(int count) %7B%0A        Random random = new Random();%0A        %0A        char%5B%5D chars = new char%5Bcount%5D;%0A        for (int i = 0; i %3C count; ++i) %7B%0A            chars%5Bi%5D = (char) random.nextInt();%0A        %7D%0A        %0A        return new String(chars);%0A    %7D%0A    %0A    public static class Model %7B%0A        public String f0;%0A        public String f1;%0A        public String f2;%0A        public String f3;%0A        public String f4;%0A    %7D%0A%7D%0A

add testcase