Package org.springframework.mock.web.portlet

Examples of org.springframework.mock.web.portlet.MockRenderRequest.addProperty()


    assertNull(request.getPortletSession().getAttribute("testBean"));

    request = new MockRenderRequest(PortletMode.EDIT);
    request.addParameter("param1", "value1");
    request.addParameter("param2", "2");
    request.addProperty("header1", "10");
    request.setCookies(new Cookie("cookie1", "3"));
    response = new MockRenderResponse();
    portlet.render(request, response);
    assertEquals("test-value1-2-10-3", response.getContentAsString());
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.