Package org.rendersnake.site

Source Code of org.rendersnake.site.IndexTest

package org.rendersnake.site;

import java.io.IOException;
import java.io.StringWriter;

import junit.framework.TestCase;

import org.rendersnake.tools.DebugHtmlCanvas;
import org.rendersnake.tools.PrettyWriter;

public class IndexTest extends TestCase {
    public void testRender() throws IOException {
        MockHttpRequest req = new MockHttpRequest();
        req.pathInfo = "site/examples.html";
       
        IndexPage index = new IndexPage();
        DebugHtmlCanvas html = new DebugHtmlCanvas(req,null,new PrettyWriter(new StringWriter()));
        html.enabled = false;
        html.render(index);
       
        System.out.println(html.toHtml());
    }
}
TOP

Related Classes of org.rendersnake.site.IndexTest

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.