use of com.alibaba.fastjson.parser.JSONScanner 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.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_null method test_scan_null_11.
public void test_scan_null_11() throws Exception {
JSONScanner lexer = new JSONScanner("null\ta");
lexer.scanNullOrNew();
}
use of com.alibaba.fastjson.parser.JSONScanner 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.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_long method test_error_1.
public void test_error_1() {
Exception error = null;
try {
String text = Long.MAX_VALUE + "1234";
JSONScanner lexer = new JSONScanner(text);
lexer.scanNumber();
lexer.longValue();
} catch (Exception ex) {
error = ex;
}
Assert.assertNotNull(error);
}
use of com.alibaba.fastjson.parser.JSONScanner in project fastjson by alibaba.
the class JSONScannerTest_new method test_scan_new_7.
public void test_scan_new_7() throws Exception {
JSONScanner lexer = new JSONScanner("new a");
lexer.scanNullOrNew();
}
Aggregations