Package org.rendersnake.test

Examples of org.rendersnake.test.MockHttpResponse


import junit.framework.TestCase;

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


        html.render(new PersonalPage());
        assertEquals(3, html.renderCount);
    }

    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

TOP

Related Classes of org.rendersnake.test.MockHttpResponse

Copyright © 2018 www.massapicom. 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.