Examples of asCharSequence()


Examples of org.rendersnake.Hash.asCharSequence()

public class HashTest extends TestCase {

   
    public void testEscape(){
        Hash h = new Hash("key","<&>");
        assertEquals(" key=\"&lt;&amp;&gt;\"", h.asCharSequence());
    }
    public void testFail(){
        try {
            new Hash("key");
            fail("should raise ex");
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.