Liferay 7.0-ce-b4

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,FileItem[]> getFileParameters(int size, byte[] bytes)
           
static Map<String,FileItem[]> getFileParameters(int size, String namespace, byte[] bytes)
           
static javax.servlet.http.HttpServletRequest getHttpServletRequest(Group group, Layout layout)
           
static LiferayServletRequest getMultipartRequest(String fileNameParameter, byte[] bytes)
           
static PortletContainerTestUtil.Response getPortalAuthentication(javax.servlet.http.HttpServletRequest httpServletRequest, 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,FileItem[]> getFileParameters(int size,
                                                       byte[] bytes)
                                                throws Exception
Throws:
Exception

getFileParameters

public static Map<String,FileItem[]> getFileParameters(int size,
                                                       String namespace,
                                                       byte[] bytes)
                                                throws Exception
Throws:
Exception

getHttpServletRequest

public static javax.servlet.http.HttpServletRequest getHttpServletRequest(Group group,
                                                                          Layout layout)
                                                                   throws PortalException
Throws:
PortalException

getMultipartRequest

public static LiferayServletRequest getMultipartRequest(String fileNameParameter,
                                                        byte[] bytes)

getPortalAuthentication

public static PortletContainerTestUtil.Response getPortalAuthentication(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                        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-b4