Examples of IScript


Examples of org.apache.tapestry.IScript

    }
   
    public void test_IAsset_Param_Render()
    {
        IScriptSource source = newScriptSource();
        IScript script = newScript();
       
        PageRenderSupport support = newPageRenderSupport();
       
        IRequestCycle cycle = newCycle(false, null);
       
        trainGetPageRenderSupport(cycle, support);
       
        IMarkupWriter writer = newWriter();
        Resource scriptLocation = newResource();
        IRender body = newRender();
       
        IComponent container = newComponent();
       
        IAsset scriptAsset = newAsset();
       
        expect(scriptAsset.getResourceLocation()).andReturn(scriptLocation);
       
        Script component = newInstance(Script.class, new Object[]
        { "specification", new ComponentSpecification(), "container", container, "scriptSource",
                source, "scriptAsset", scriptAsset });
       
        trainGetScript(source, scriptLocation, script);
       
        script.execute(component, cycle, support, new HashMap());
       
        trainResponseBuilder(cycle, writer);
       
        body.render(writer, cycle);
       
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.