public class PortletContainerTestUtil
extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PortletContainerTestUtil.Response |
Constructor and Description |
---|
PortletContainerTestUtil() |
Modifier and Type | Method and Description |
---|---|
static Map<String,com.liferay.portal.kernel.upload.FileItem[]> |
getFileParameters(int size,
byte[] bytes) |
static Map<String,com.liferay.portal.kernel.upload.FileItem[]> |
getFileParameters(int size,
String namespace,
byte[] bytes) |
static javax.servlet.http.HttpServletRequest |
getHttpServletRequest(com.liferay.portal.kernel.model.Group group,
com.liferay.portal.kernel.model.Layout layout) |
static com.liferay.portal.upload.LiferayServletRequest |
getMultipartRequest(String fileNameParameter,
byte[] bytes) |
static PortletContainerTestUtil.Response |
getPortalAuthentication(javax.servlet.http.HttpServletRequest httpServletRequest,
com.liferay.portal.kernel.model.Layout layout,
String portletId) |
static Map<String,List<String>> |
getRegularParameters(int size) |
static PortletContainerTestUtil.Response |
postMultipart(String url,
org.springframework.mock.web.MockMultipartHttpServletRequest mockMultipartHttpServletRequest,
String fileNameParameter) |
static PortletContainerTestUtil.Response |
request(String url) |
static PortletContainerTestUtil.Response |
request(String url,
Map<String,List<String>> headers) |
public static Map<String,com.liferay.portal.kernel.upload.FileItem[]> getFileParameters(int size, byte[] bytes) throws Exception
Exception
public static Map<String,com.liferay.portal.kernel.upload.FileItem[]> getFileParameters(int size, String namespace, byte[] bytes) throws Exception
Exception
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
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.upload.LiferayServletRequest getMultipartRequest(String fileNameParameter, byte[] bytes)
public static PortletContainerTestUtil.Response getPortalAuthentication(javax.servlet.http.HttpServletRequest httpServletRequest, com.liferay.portal.kernel.model.Layout layout, String portletId) throws Exception
Exception
public static Map<String,List<String>> getRegularParameters(int size)
public static PortletContainerTestUtil.Response postMultipart(String url, org.springframework.mock.web.MockMultipartHttpServletRequest mockMultipartHttpServletRequest, String fileNameParameter) throws IOException
IOException
public static PortletContainerTestUtil.Response request(String url) throws IOException
IOException
public static PortletContainerTestUtil.Response request(String url, Map<String,List<String>> headers) throws IOException
IOException