Package org.rendersnake.site

Source Code of org.rendersnake.site.LoginFormTest

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

Related Classes of org.rendersnake.site.LoginFormTest

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.