Search in sources :

Example 1 with Renderer

use of org.apache.tiles.request.render.Renderer in project spring-framework by spring-projects.

the class TilesViewTests method setUp.

@Before
public void setUp() throws Exception {
    MockServletContext servletContext = new MockServletContext();
    StaticWebApplicationContext wac = new StaticWebApplicationContext();
    wac.setServletContext(servletContext);
    wac.refresh();
    request = new MockHttpServletRequest();
    request.setAttribute(DispatcherServlet.WEB_APPLICATION_CONTEXT_ATTRIBUTE, wac);
    response = new MockHttpServletResponse();
    renderer = mock(Renderer.class);
    view = new TilesView();
    view.setServletContext(servletContext);
    view.setRenderer(renderer);
    view.setUrl(VIEW_PATH);
    view.afterPropertiesSet();
}
Also used : MockHttpServletRequest(org.springframework.mock.web.test.MockHttpServletRequest) Renderer(org.apache.tiles.request.render.Renderer) StaticWebApplicationContext(org.springframework.web.context.support.StaticWebApplicationContext) MockServletContext(org.springframework.mock.web.test.MockServletContext) MockHttpServletResponse(org.springframework.mock.web.test.MockHttpServletResponse) Before(org.junit.Before)

Aggregations

Renderer (org.apache.tiles.request.render.Renderer)1 Before (org.junit.Before)1 MockHttpServletRequest (org.springframework.mock.web.test.MockHttpServletRequest)1 MockHttpServletResponse (org.springframework.mock.web.test.MockHttpServletResponse)1 MockServletContext (org.springframework.mock.web.test.MockServletContext)1 StaticWebApplicationContext (org.springframework.web.context.support.StaticWebApplicationContext)1