Package nu.xom

Examples of nu.xom.Comment.toXML()



    public void testToXML() {
       
        Comment c1 = new Comment("content");
        assertEquals("<!--content-->", c1.toXML());         
       
        c1.setValue(" 012345678901234567890123456789012345678901234567890123456789 ");
        assertEquals(
          "<!-- 012345678901234567890123456789012345678901234567890123456789 -->",
          c1.toXML()
View Full Code Here


        assertEquals("<!--content-->", c1.toXML());         
       
        c1.setValue(" 012345678901234567890123456789012345678901234567890123456789 ");
        assertEquals(
          "<!-- 012345678901234567890123456789012345678901234567890123456789 -->",
          c1.toXML()
        );
          
    }
   
   
View Full Code Here

    }

   
    public void testAllowReservedCharactersInData() {
        Comment comment = new Comment("<test>&amp;&greater;");
        String xml = comment.toXML();
        assertEquals("<!--<test>&amp;&greater;-->", xml)
    }


    public void testForbidIllegalCharactersInComments() {
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.