package org.rendersnake.site;
import java.io.IOException;
import junit.framework.TestCase;
import org.rendersnake.site.example.LoginForm;
import org.rendersnake.tools.DebugHtmlCanvas;
import org.rendersnake.tools.PrettyWriter;
public class LoginFormTest extends TestCase {
public void testRender() throws IOException {
MockHttpRequest request = new MockHttpRequest();
MockHttpResponse response = new MockHttpResponse();
DebugHtmlCanvas html = new DebugHtmlCanvas(request,response,new PrettyWriter());
html.enabled = false;
html.render(new LoginForm());
System.out.println(html.toHtml());
}
}