List of usage examples for com.liferay.portal.kernel.util Portal getOriginalServletRequest
public HttpServletRequest getOriginalServletRequest(HttpServletRequest httpServletRequest);
From source file:com.liferay.blogs.web.internal.portlet.action.TrackbackMVCActionCommandTest.java
License:Open Source License
protected void setUpPortalUtil() throws Exception { PortalUtil portalUtil = new PortalUtil(); Portal portal = mock(Portal.class); when(portal.getOriginalServletRequest((HttpServletRequest) Matchers.any())) .thenReturn(_mockOriginalServletRequest); when(portal.getHttpServletRequest((PortletRequest) Matchers.any())).thenReturn(_mockHttpServletRequest); when(portal.getHttpServletResponse((PortletResponse) Matchers.any())).thenReturn(_mockHttpServletResponse); portalUtil.setPortal(portal);//from ww w . ja v a 2s. c om }