Package com.opensymphony.module.sitemesh.html.rules

Examples of com.opensymphony.module.sitemesh.html.rules.TagReplaceRule


    assertEquals("finished", stateLog.toString());
  }

    public void testSupportsConventionalReaderAndWriter() throws IOException {
        HTMLProcessor processor = createProcessor("<hello><b id=\"something\">world</b></hello>");
        processor.addRule(new TagReplaceRule("b", "strong"));

        processor.process();
        assertEquals("<hello><strong id=\"something\">world</strong></hello>", body.build().getStringContent());
    }
View Full Code Here

TOP

Related Classes of com.opensymphony.module.sitemesh.html.rules.TagReplaceRule

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.