@@ -0,0 +1,2427 @@
+package com.alibaba.json.bvt.parser.error;%0A%0Aimport java.util.Map;%0A%0Aimport org.junit.Assert;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.JSONException;%0Aimport com.alibaba.fastjson.parser.Feature;%0Aimport com.alibaba.fastjson.parser.ParserConfig;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class ParseErrorTest_21 extends TestCase %7B%0A%0A    public void test_for_error() throws Exception %7B%0A        Exception error = null;%0A        try %7B%0A            JSON.parseObject(%22%7B%5C%22value%5C%22:123%7D%22, Model.class);   %0A        %7D catch (JSONException ex) %7B%0A            error = ex;%0A        %7D%0A        Assert.assertNotNull(error);%0A    %7D%0A    %0A    public void test_for_error_1() throws Exception %7B%0A        Exception error = null;%0A        try %7B%0A            JSON.parseObject(%22%7B%5C%22value%5C%22:%7B,,,%5C%22id%5C%22,%7D%7D%22, Model.class);   %0A        %7D catch (JSONException ex) %7B%0A            error = ex;%0A        %7D%0A        Assert.assertNotNull(error);%0A    %7D%0A    %0A    public void test_for_error_2() throws Exception %7B%0A        Exception error = null;%0A        try %7B%0A            JSON.parseObject(%22%7B%5C%22value%5C%22:%7B'child1':%7B%5C%22id%5C%22:123%7D%7D%7D%22, Model.class, ParserConfig.getGlobalInstance(), 0);   %0A        %7D catch (JSONException ex) %7B%0A            error = ex;%0A        %7D%0A        Assert.assertNotNull(error);%0A    %7D%0A    %0A    public void test_for_error_3() throws Exception %7B%0A        Exception error = null;%0A        try %7B%0A            JSON.parseObject(%22%7B%5C%22value%5C%22:%7B'child1',%7B%5C%22id%5C%22:123%7D%7D%7D%22, Model.class);   %0A        %7D catch (JSONException ex) %7B%0A            error = ex;%0A        %7D%0A        Assert.assertNotNull(error);%0A    %7D%0A    %0A    public void test_for_error_4() throws Exception %7B%0A        Exception error = null;%0A        try %7B%0A            JSON.parseObject(%22%7B%5C%22value%5C%22:%7Bchild1:%7B%5C%22id%5C%22:123%7D%7D%7D%22, Model.class, ParserConfig.getGlobalInstance(), 0);   %0A        %7D catch (JSONException ex) %7B%0A            error = ex;%0A        %7D%0A        Assert.assertNotNull(error);%0A    %7D%0A    %0A    public void test_for_error_5() throws Exception %7B%0A        Exception error = null;%0A        try %7B%0A            JSON.parseObject(%22%7B%5C%22value%5C%22:%7Bchild1,%7B%5C%22id%5C%22:123%7D%7D%7D%22, Model.class, ParserConfig.getGlobalInstance(), 0, Feature.AllowUnQuotedFieldNames);   %0A        %7D catch (JSONException ex) %7B%0A            error = ex;%0A        %7D%0A        Assert.assertNotNull(error);%0A    %7D%0A    %0A    public static class Model %7B%0A        public Map%3CString, Child%3E value;%0A    %7D%0A    %0A    public static class Child %7B%0A        public int id;%0A    %7D%0A%7D%0A

add testcase