@@ -0,0 +1,737 @@
+package com.alibaba.json.bvt.serializer.enum_;%0A%0Aimport com.alibaba.fastjson.JSON;%0Aimport com.alibaba.fastjson.serializer.SerializerFeature;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Created by wenshao on 17/03/2017.%0A */%0Apublic class EnumOrdinalTest extends TestCase %7B%0A    public void test_enum_ordinal() throws Exception %7B%0A        Model model = new Model();%0A        model.type = Type.Big;%0A%0A        int serializerFeatures = JSON.DEFAULT_GENERATE_FEATURE & ~SerializerFeature.WriteEnumUsingName.mask;%0A        String text = JSON.toJSONString(model, serializerFeatures);%0A        System.out.println(text);%0A    %7D%0A%0A    public static class Model %7B%0A        public Type type;%0A    %7D%0A%0A    public static enum Type %7B%0A        Big, Medium, Small%0A    %7D%0A%7D%0A

add EnumOrdinalTest