Liferay 7.0-ce-b7 portal-test-internal

com.liferay.portal.util.test
Class PortletContainerTestUtil

java.lang.Object
  extended by com.liferay.portal.util.test.PortletContainerTestUtil

public class PortletContainerTestUtil
extends Object


Nested Class Summary
static class PortletContainerTestUtil.Response
           
 
Constructor Summary
PortletContainerTestUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletContainerTestUtil

public PortletContainerTestUtil()
Method Detail

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

public static Map<String,List<String>> getRegularParameters(int size)

postMultipart

public static PortletContainerTestUtil.Response postMultipart(String url,
                                                              org.springframework.mock.web.MockMultipartHttpServletRequest mockMultipartHttpServletRequest,
                                                              String fileNameParameter)
                                                       throws IOException
Throws:
IOException

request

public static PortletContainerTestUtil.Response request(String url)
                                                 throws IOException
Throws:
IOException

request

public static PortletContainerTestUtil.Response request(String url,
                                                        Map<String,List<String>> headers)
                                                 throws IOException
Throws:
IOException

Liferay 7.0-ce-b7 portal-test-internal