Package org.apache.velocity.tools.generic

Examples of org.apache.velocity.tools.generic.EscapeTool.unicode()


        /* sql */
        assertEquals("''",escapeTool.sql("'"));
        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";
View Full Code Here


        assertEquals("''",escapeTool.sql("'"));
        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";

View Full Code Here

        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";

    public @Test void testFieldTool() {
View Full Code Here

        /* sql */
        assertEquals("''",escapeTool.sql("'"));
        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";
View Full Code Here

        assertEquals("''",escapeTool.sql("'"));
        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";

View Full Code Here

        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";

    public @Test void testFieldTool() {
View Full Code Here

        /* sql */
        assertEquals("''",escapeTool.sql("'"));
        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";
View Full Code Here

        assertEquals("''",escapeTool.sql("'"));
        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";

View Full Code Here

        /* xml */
        assertEquals("&quot;&amp;&lt;&gt;",escapeTool.html("\"&<>"));
        /* unicode */
        assertEquals("\uf00b", escapeTool.unicode("f00b"));
        assertEquals("\u1010", escapeTool.unicode("\\u1010"));
        assertEquals("\u1111", escapeTool.unicode(1111));
    }

    public static String MUTABLE_FIELD = "foo";

    public @Test void testFieldTool() {
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.