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());
}
}