Package org.apache.rave.portal.web.renderer.model

Examples of org.apache.rave.portal.web.renderer.model.RenderContext


        w.setUrl(VALID_WIDGET_URL);
        RegionWidget rw = new RegionWidget();
        rw.setEntityId(1L);
        rw.setWidget(w);

        RenderContext renderContext = createNiceMock(RenderContext.class);
        renderer.render(rw, renderContext);
    }
View Full Code Here


        }
        return bean;
    }

    protected RenderContext getContext() {
       RenderContext context = (RenderContext)this.pageContext.getRequest().getAttribute(CONTEXT_KEY);
       if(context == null) {
           context = new RenderContext();
           context.setProperties(new HashMap());
           this.pageContext.getRequest().setAttribute(CONTEXT_KEY, context);
       }
       return context;
    }
View Full Code Here

    private static final boolean VALID_COLLAPSED = true;
    private RenderContext renderContext;

    @Before
    public void setup() {
        renderContext = new RenderContext();
        scriptManager = createStrictMock(ScriptManager.class);
        openSocialService = createNiceMock(OpenSocialService.class);
        securityTokenService = createNiceMock(SecurityTokenService.class);
        renderer = new OpenSocialWidgetRenderer(openSocialService, securityTokenService, scriptManager);
    }
View Full Code Here

    private RenderContext context;
    private ScriptManager scriptManager;

    @Before
    public void setup() throws JspException {
        context = new RenderContext();
        service = createNiceMock(RenderService.class);
        scriptManager = createMock(ScriptManager.class);
        WebApplicationContext wContext = createNiceMock(WebApplicationContext.class);
        expect(wContext.getBean(RenderService.class)).andReturn(service).anyTimes();
        expect(wContext.getBean(ScriptManager.class)).andReturn(scriptManager).anyTimes();
View Full Code Here

TOP

Related Classes of org.apache.rave.portal.web.renderer.model.RenderContext

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.