use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_true method test_scan_true_4.
public void test_scan_true_4() throws Exception {
JSONException error = null;
try {
JSONScanner lexer = new JSONScanner("truz");
lexer.scanTrue();
} catch (JSONException e) {
error = e;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_true method test_scan_true_6.
public void test_scan_true_6() throws Exception {
JSONException error = null;
try {
JSONScanner lexer = new JSONScanner("true\"");
lexer.scanTrue();
} catch (JSONException e) {
error = e;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_scanFieldDouble method test_error_3.
public void test_error_3() throws Exception {
JSONException error = null;
try {
String text = "{\"value\":32}{";
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_8.
public void test_error_8() 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_2.
public void test_error_2() throws Exception {
JSONException error = null;
try {
String text = "{\"value\":32K}";
JSON.parseObject(text, VO.class);
} catch (JSONException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
Aggregations