use of com.alibaba.fastjson.parser.deserializer.NumberDeserializer in project fastjson by alibaba.
the class TestNull method test_short.
public void test_short() throws Exception {
DefaultJSONParser parser = new DefaultJSONParser("null", ParserConfig.getGlobalInstance(), JSON.DEFAULT_PARSER_FEATURE);
Assert.assertNull(new NumberDeserializer().deserialze(parser, null, null));
}
use of com.alibaba.fastjson.parser.deserializer.NumberDeserializer in project fastjson by alibaba.
the class TestNull method test_null.
public void test_null() throws Exception {
DefaultJSONParser parser = new DefaultJSONParser("null", ParserConfig.getGlobalInstance(), JSON.DEFAULT_PARSER_FEATURE);
Assert.assertNull(new NumberDeserializer().deserialze(parser, null, null));
}
use of com.alibaba.fastjson.parser.deserializer.NumberDeserializer in project fastjson by alibaba.
the class TestNull method test_byte.
public void test_byte() throws Exception {
DefaultJSONParser parser = new DefaultJSONParser("null", ParserConfig.getGlobalInstance(), JSON.DEFAULT_PARSER_FEATURE);
Assert.assertNull(new NumberDeserializer().deserialze(parser, null, null));
}
Aggregations