Class PortletContainerTestUtil
java.lang.Object
com.liferay.portal.osgi.web.portlet.container.test.util.PortletContainerTestUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFileParameters(int size, byte[] bytes) getFileParameters(int size, String namespace, byte[] bytes) static javax.servlet.http.HttpServletRequestgetHttpServletRequest(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.Layout layout) static com.liferay.portal.upload.LiferayServletRequestgetMultipartRequest(String fileNameParameter, byte[] bytes) getPortalAuthentication(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Layout layout, String portletId) getRegularParameters(int size) postMultipart(String url, org.springframework.mock.web.MockMultipartHttpServletRequest mockMultipartHttpServletRequest, String fileNameParameter)
-
Constructor Details
-
PortletContainerTestUtil
public PortletContainerTestUtil()
-
-
Method Details
-
getFileParameters
public static Map<String,com.liferay.portal.kernel.upload.FileItem[]> getFileParameters(int size, byte[] bytes) throws Exception - Throws:
Exception
-
getFileParameters
public static Map<String,com.liferay.portal.kernel.upload.FileItem[]> getFileParameters(int size, String namespace, byte[] bytes) throws Exception - Throws:
Exception
-
getHttpServletRequest
public static javax.servlet.http.HttpServletRequest getHttpServletRequest(com.liferay.portal.kernel.model.Group group, com.liferay.portal.kernel.model.Layout layout) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getMultipartRequest
public static com.liferay.portal.upload.LiferayServletRequest getMultipartRequest(String fileNameParameter, byte[] bytes) -
getPortalAuthentication
public static PortletContainerTestUtil.Response getPortalAuthentication(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Layout layout, String portletId) throws Exception - Throws:
Exception
-
getRegularParameters
-
postMultipart
public static PortletContainerTestUtil.Response postMultipart(String url, org.springframework.mock.web.MockMultipartHttpServletRequest mockMultipartHttpServletRequest, String fileNameParameter) throws IOException - Throws:
IOException
-
request
- Throws:
IOException
-
request
public static PortletContainerTestUtil.Response request(String url, Map<String, List<String>> headers) throws IOException- Throws:
IOException
-