use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_scanFieldDouble method test_error_9.
public void test_error_9() throws Exception {
JSONException error = null;
try {
String text = "{\"value\":3.2},";
JSON.parseObject(text, VO.class);
} catch (JSONException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_scanFieldDouble method test_error_4.
public void test_error_4() throws Exception {
JSONException error = null;
try {
String text = "{\"value\":中}";
JSON.parseObject(text, VO.class);
} catch (JSONException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_scanFieldFloat method test_error_11.
public void test_error_11() throws Exception {
JSONException error = null;
try {
String text = "{\"value\":3.中}";
JSON.parseObject(text, VO.class);
} catch (JSONException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_scanFieldFloat method test_error_9.
public void test_error_9() throws Exception {
JSONException error = null;
try {
String text = "{\"value\":3.2},";
JSON.parseObject(text, VO.class);
} catch (JSONException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_scanFieldFloat method test_error_5.
public void test_error_5() throws Exception {
JSONException error = null;
try {
String text = "{\"value\":3.F";
JSON.parseObject(text, VO.class);
} catch (JSONException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
Aggregations