@Test(expected = PortletException.class) public void actionRequest() throws Exception { controller.handleActionRequest(new MockActionRequest(), new MockActionResponse()); }
@Test public void viewPortletMode() throws Exception { request.setPortletMode(PortletMode.VIEW); ModelAndView mav = controller.handleRenderRequest(request, response); assertEquals("view", mav.getViewName()); }