use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_null method test_scan_null_6.
public void test_scan_null_6() throws Exception {
JSONException error = null;
try {
JSONScanner lexer = new JSONScanner("null\"");
lexer.scanNullOrNew();
} catch (JSONException e) {
error = e;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_null method test_scan_null_3.
public void test_scan_null_3() throws Exception {
JSONException error = null;
try {
JSONScanner lexer = new JSONScanner("nuzl");
lexer.scanNullOrNew();
} catch (JSONException e) {
error = e;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_null method test_scan_null_1.
public void test_scan_null_1() throws Exception {
JSONException error = null;
try {
JSONScanner lexer = new JSONScanner("zull");
lexer.scanNullOrNew();
} catch (JSONException e) {
error = e;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.JSONException in project fastjson by alibaba.
the class JSONScannerTest_null method test_scan_null_2.
public void test_scan_null_2() throws Exception {
JSONException error = null;
try {
JSONScanner lexer = new JSONScanner("nzll");
lexer.scanNullOrNew();
} 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_7.
public void test_error_7() throws Exception {
JSONException error = null;
try {
String text = "{\"value\":3.2}]";
JSON.parseObject(text, VO.class);
} catch (JSONException ex) {
error = ex;
}
Assert.assertNotNull(error);
}
Aggregations