Package org.apache.jena.atlas.json

Examples of org.apache.jena.atlas.json.JsonString


    @Test public void js_write_str_11() { test("\u2001", "\"\\u2001\"") ; }
   
   
    private static void test(String str, String expected)
    {
        JsonValue v = new JsonString(str) ;
        str = v.toString() ;
        assertEquals(expected, str) ;
    }
View Full Code Here


        assertEquals(expected, str) ;
    }
   
    private static void test(String str)
    {
        JsonValue v = new JsonString(str) ;
        writeRead(v) ;
    }
View Full Code Here

{
    // -------- Non-standard things.
   
    @Test public void js_value_ext_1()
    {
        read("'abc'", new JsonString("abc")) ;
    }
View Full Code Here

        read("'abc'", new JsonString("abc")) ;
    }
   
    @Test public void js_value_ext_2()
    {
        read("'''abc'''", new JsonString("abc")) ;
    }
View Full Code Here

        read("'''abc'''", new JsonString("abc")) ;
    }

    @Test public void js_value_ext_3()
    {
        read("\"\"\"abc\"\"\"", new JsonString("abc")) ;
    }
View Full Code Here

TOP

Related Classes of org.apache.jena.atlas.json.JsonString

Copyright © 2018 www.massapicom. 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.