Package com.alibaba.fastjson.parser

Examples of com.alibaba.fastjson.parser.JSONScanner.nextIdent()


public class JSONLexerTest_8 extends TestCase {

    public void test_ident() throws Exception {
        JSONScanner lexer = new JSONScanner("123");
        lexer.nextIdent();
        org.junit.Assert.assertEquals(JSONToken.LITERAL_INT, lexer.token());
        lexer.close();
    }

    public void test_ident_2() throws Exception {
View Full Code Here


        lexer.close();
    }

    public void test_ident_2() throws Exception {
        JSONScanner lexer = new JSONScanner("\uFEFF123");
        lexer.nextIdent();
        org.junit.Assert.assertEquals(JSONToken.LITERAL_INT, lexer.token());
        lexer.close();
    }
   
    public void test_ident_3() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.