Package org.apache.tapestry.engine

Examples of org.apache.tapestry.engine.RequestCycle


    public void testNotRewindingDisabled() {
        Mock formMock = getFormMock(false);
        Html4Button button = getButton(formMock, null, true, null);
        StringWriter strWriter = new StringWriter();
        PrintWriter writer = new PrintWriter(strWriter);
        button.renderFormComponent(new MarkupWriterImpl("UTF-8", writer, new AsciiMarkupFilter()), new RequestCycle());
        writer.flush();
        formMock.verify();
        String hiddenName = FORM_NAME + "_ctrl";
        assertEquals("<input type=\"hidden\" name=\"" + hiddenName + "\"></input><button type=\"" + TYPE + "\" name=\"" + FORM_NAME + "\" disabled=\"disabled\" value=\"" + LABEL + "\" onclick=\"document." + FORM_NAME + "." + hiddenName + ".value='x'\"><em>body</em></button>", strWriter.toString());
    }
View Full Code Here


    public void testUnique() throws Exception
    {
        IScript script = read("unique.script");

        IRequestCycle cycle = new RequestCycle();

        script.execute(cycle, _processor, null);
        script.execute(cycle, _processor, null);

        assertEquals("Block1\nBlock2\nNotUnique\n\n\n\nNotUnique", _processor.getBody().trim());
View Full Code Here

TOP

Related Classes of org.apache.tapestry.engine.RequestCycle

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.