Package org.rendersnake.tools

Examples of org.rendersnake.tools.DebugHtmlCanvas.render()


public class DebugServletCanvasTest extends TestCase {

    public void testRenderCount() throws IOException {
        DebugHtmlCanvas html = new DebugHtmlCanvas(new MockHttpRequest(), new MockHttpResponse(), new StringWriter());
        html.render(new PersonalPage());
        assertEquals(3, html.renderCount);
    }

    public void testRenderCountDisabled() throws IOException {
        DebugHtmlCanvas html = new DebugHtmlCanvas(new MockHttpRequest(), new MockHttpResponse(), new StringWriter());
View Full Code Here


    }

    public void testRenderCountDisabled() throws IOException {
        DebugHtmlCanvas html = new DebugHtmlCanvas(new MockHttpRequest(), new MockHttpResponse(), new StringWriter());
        html.enabled = false;
        html.render(new PersonalPage());
        assertEquals(0, html.renderCount);
    }
}
View Full Code Here

        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());
    }
}
View Full Code Here

        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());
    }
}
View Full Code Here

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.