Search in sources :

Example 6 with Entity

use of com.alibaba.json.bvt.serializer.BooleanFieldSerializerTest.Entity in project fastjson by alibaba.

the class BooleanFieldSerializerTest_primitive method test_codec.

public void test_codec() throws Exception {
    Entity v1 = parseObjectNoAsm("{value:1}", Entity.class, JSON.DEFAULT_PARSER_FEATURE);
    Assert.assertEquals(true, v1.getValue());
}
Also used : Entity(com.alibaba.json.bvt.serializer.BooleanFieldSerializerTest.Entity)

Aggregations

Entity (com.alibaba.json.bvt.serializer.BooleanFieldSerializerTest.Entity)6 SerializeConfig (com.alibaba.fastjson.serializer.SerializeConfig)1