Liferay 7.0-ce-m3

com.liferay.portal.lar
Class BasePortletExportImportTestCase

java.lang.Object
  extended by com.liferay.portal.lar.BaseExportImportTestCase
      extended by com.liferay.portal.lar.BasePortletExportImportTestCase

public abstract class BasePortletExportImportTestCase
extends BaseExportImportTestCase


Field Summary
 
Fields inherited from class com.liferay.portal.lar.BaseExportImportTestCase
group, importedGroup, importedLayout, larFile, layout
 
Constructor Summary
BasePortletExportImportTestCase()
           
 
Method Summary
protected  AssetLink addAssetLink(StagedModel sourceStagedModel, StagedModel targetStagedModel, int weight)
           
protected  void addParameter(Map<String,String[]> parameterMap, String name, boolean value)
           
protected  void exportImportPortlet(String portletId)
           
protected  void exportImportPortlet(String portletId, Map<String,String[]> exportParameterMap, Map<String,String[]> importParameterMap)
           
protected  void exportImportPortlet(String portletId, Map<String,String[]> exportParameterMap, Map<String,String[]> importParameterMap, Date startDate, Date endDate)
           
protected  AssetEntry getAssetEntry(StagedModel stagedModel)
           
protected  PortletPreferences getImportedPortletPreferences(Map<String,String[]> preferenceMap)
           
 String getNamespace()
           
 String getPortletId()
           
 void testExportImportAssetLinks()
           
protected  void testExportImportAvailableLocales(Locale[] sourceAvailableLocales, Locale[] targetAvailableLocales, boolean expectFailure)
           
 void testExportImportDeletions()
           
protected  void testExportImportDisplayStyle(long displayStyleGroupId, String scopeType)
           
 void testExportImportDisplayStyleFromCurrentGroup()
           
 void testExportImportDisplayStyleFromDifferentGroup()
           
 void testExportImportDisplayStyleFromGlobalScope()
           
 void testExportImportDisplayStyleFromLayoutScope()
           
 void testExportImportInvalidAvailableLocales()
           
 void testExportImportValidAvailableLocales()
           
 void testUpdateLastPublishDate()
           
protected  void validateImportedLinks(StagedModel originalStagedModel, StagedModel importedStagedModel)
           
 
Methods inherited from class com.liferay.portal.lar.BaseExportImportTestCase
addParameter, addParameter, addStagedModel, addStagedModel, deleteStagedModel, getExportParameterMap, getImportParameterMap, getStagedModel, getStagedModelUuid, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasePortletExportImportTestCase

public BasePortletExportImportTestCase()
Method Detail

getNamespace

public String getNamespace()

getPortletId

public String getPortletId()
                    throws Exception
Throws:
Exception

testExportImportAssetLinks

public void testExportImportAssetLinks()
                                throws Exception
Throws:
Exception

testExportImportDeletions

public void testExportImportDeletions()
                               throws Exception
Throws:
Exception

testExportImportDisplayStyleFromCurrentGroup

public void testExportImportDisplayStyleFromCurrentGroup()
                                                  throws Exception
Throws:
Exception

testExportImportDisplayStyleFromDifferentGroup

public void testExportImportDisplayStyleFromDifferentGroup()
                                                    throws Exception
Throws:
Exception

testExportImportDisplayStyleFromGlobalScope

public void testExportImportDisplayStyleFromGlobalScope()
                                                 throws Exception
Throws:
Exception

testExportImportDisplayStyleFromLayoutScope

public void testExportImportDisplayStyleFromLayoutScope()
                                                 throws Exception
Throws:
Exception

testExportImportInvalidAvailableLocales

public void testExportImportInvalidAvailableLocales()
                                             throws Exception
Throws:
Exception

testExportImportValidAvailableLocales

public void testExportImportValidAvailableLocales()
                                           throws Exception
Throws:
Exception

testUpdateLastPublishDate

public void testUpdateLastPublishDate()
                               throws Exception
Throws:
Exception

addAssetLink

protected AssetLink addAssetLink(StagedModel sourceStagedModel,
                                 StagedModel targetStagedModel,
                                 int weight)
                          throws PortalException
Throws:
PortalException

addParameter

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

exportImportPortlet

protected void exportImportPortlet(String portletId)
                            throws Exception
Throws:
Exception

exportImportPortlet

protected void exportImportPortlet(String portletId,
                                   Map<String,String[]> exportParameterMap,
                                   Map<String,String[]> importParameterMap)
                            throws Exception
Throws:
Exception

exportImportPortlet

protected void exportImportPortlet(String portletId,
                                   Map<String,String[]> exportParameterMap,
                                   Map<String,String[]> importParameterMap,
                                   Date startDate,
                                   Date endDate)
                            throws Exception
Throws:
Exception

getAssetEntry

protected AssetEntry getAssetEntry(StagedModel stagedModel)
                            throws PortalException
Throws:
PortalException

getImportedPortletPreferences

protected PortletPreferences getImportedPortletPreferences(Map<String,String[]> preferenceMap)
                                                    throws Exception
Throws:
Exception

testExportImportAvailableLocales

protected void testExportImportAvailableLocales(Locale[] sourceAvailableLocales,
                                                Locale[] targetAvailableLocales,
                                                boolean expectFailure)
                                         throws Exception
Throws:
Exception

testExportImportDisplayStyle

protected void testExportImportDisplayStyle(long displayStyleGroupId,
                                            String scopeType)
                                     throws Exception
Throws:
Exception

validateImportedLinks

protected void validateImportedLinks(StagedModel originalStagedModel,
                                     StagedModel importedStagedModel)
                              throws PortalException
Throws:
PortalException

Liferay 7.0-ce-m3