Java 类com.alibaba.fastjson.serializer.CalendarCodec 实例源码

项目:GitHub    文件:DateParseTest9.java   
public void test_date() throws Exception {
    String text = "\"/Date(1242357713797+0800)/\"";
    Date date = JSON.parseObject(text, Date.class);
    Assert.assertEquals(date.getTime(), 1242357713797L);

    Assert.assertEquals(JSONToken.LITERAL_INT, CalendarCodec.instance.getFastMatchToken());
}