Package org.rendersnake.internal

Examples of org.rendersnake.internal.SimpleContextMap


public class LoginFormTest extends TestCase {
    public void testRender() throws IOException {
       
        HtmlCanvas html = new HtmlCanvas(new PrettyWriter());
        html.getPageContext().withObject(PageContext.SESSION, new SimpleContextMap());
        html.render(new LoginForm());
       
        System.out.println(html.toHtml());
    }
View Full Code Here


        ctx.withString("size", "");
        Integer integer = ctx.getInteger("size");
        System.out.println(integer);
    }
    public void testAccess(){
        ctx.withObject("map", new SimpleContextMap());
        ContextMap map = ctx.getContextMap("map");
        map.withString("s","s");
        // TODO cannot use cascading anymore, fix it
        map.withBoolean("b", true);
    }
View Full Code Here

TOP

Related Classes of org.rendersnake.internal.SimpleContextMap

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.