Liferay 7.0-ga1 portal-test-integration

com.liferay.portal.lar.test
Class BasePortletDataHandlerTestCase

java.lang.Object
  extended by com.liferay.portal.lar.test.BasePortletDataHandlerTestCase

public abstract class BasePortletDataHandlerTestCase
extends Object


Field Summary
protected  com.liferay.portal.kernel.xml.Element missingReferencesElement
           
protected  com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext
           
protected  com.liferay.exportimport.kernel.lar.PortletDataHandler portletDataHandler
           
protected  String portletId
           
protected  com.liferay.portal.kernel.xml.Element rootElement
           
protected  com.liferay.portal.kernel.model.Group stagingGroup
           
protected  com.liferay.portal.kernel.zip.ZipWriter zipWriter
           
 
Constructor Summary
BasePortletDataHandlerTestCase()
           
 
Method Summary
protected  void addBooleanParameter(Map<String,String[]> parameterMap, String namespace, String name, boolean value)
           
protected  void addParameters(Map<String,String[]> parameterMap)
           
protected abstract  void addStagedModels()
           
protected  void checkManifestSummary(com.liferay.exportimport.kernel.lar.ManifestSummary expectedManifestSummary)
           
protected  Date getEndDate()
           
protected  com.liferay.exportimport.kernel.lar.PortletDataHandler getPortletDataHandler(String portletId)
           
protected abstract  String getPortletId()
           
protected  Date getStartDate()
           
protected  void initExport()
           
 void setUp()
           
 void testPrepareManifestSummary()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

missingReferencesElement

protected com.liferay.portal.kernel.xml.Element missingReferencesElement

portletDataContext

protected com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext

portletDataHandler

protected com.liferay.exportimport.kernel.lar.PortletDataHandler portletDataHandler

portletId

protected String portletId

rootElement

protected com.liferay.portal.kernel.xml.Element rootElement

stagingGroup

@DeleteAfterTestRun
protected com.liferay.portal.kernel.model.Group stagingGroup

zipWriter

protected com.liferay.portal.kernel.zip.ZipWriter zipWriter
Constructor Detail

BasePortletDataHandlerTestCase

public BasePortletDataHandlerTestCase()
Method Detail

setUp

public void setUp()
           throws Exception
Throws:
Exception

testPrepareManifestSummary

public void testPrepareManifestSummary()
                                throws Exception
Throws:
Exception

addBooleanParameter

protected void addBooleanParameter(Map<String,String[]> parameterMap,
                                   String namespace,
                                   String name,
                                   boolean value)

addParameters

protected void addParameters(Map<String,String[]> parameterMap)

addStagedModels

protected abstract void addStagedModels()
                                 throws Exception
Throws:
Exception

checkManifestSummary

protected void checkManifestSummary(com.liferay.exportimport.kernel.lar.ManifestSummary expectedManifestSummary)

getEndDate

protected Date getEndDate()

getPortletDataHandler

protected com.liferay.exportimport.kernel.lar.PortletDataHandler getPortletDataHandler(String portletId)

getPortletId

protected abstract String getPortletId()

getStartDate

protected Date getStartDate()

initExport

protected void initExport()
                   throws Exception
Throws:
Exception

Liferay 7.0-ga1 portal-test-integration