Liferay 7.0-ce-b4

com.liferay.portal.lar.test
Class BasePortletExportImportTestCase

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

public abstract class BasePortletExportImportTestCase
extends BaseExportImportTestCase


Field Summary
 
Fields inherited from class com.liferay.portal.lar.test.BaseExportImportTestCase
group, importedGroup, importedLayout, larFile, layout
 
Constructor Summary
BasePortletExportImportTestCase()
           
 
Method Summary
protected  void addParameter(Map<String,String[]> parameterMap, String name, boolean value)
           
protected  StagedModel addVersion(StagedModel stagedModel)
           
protected  void deleteFirstVersion(StagedModel stagedModel)
           
protected  void deleteLatestVersion(StagedModel stagedModel)
           
protected  void exportImportPortlet(String portletId)
           
protected  void exportImportPortlet(String portletId, Map<String,String[]> exportParameterMap, Map<String,String[]> importParameterMap)
           
protected  PortletPreferences getImportedPortletPreferences(Map<String,String[]> preferenceMap)
           
 String getNamespace()
           
 String getPortletId()
           
protected  boolean isVersioningEnabled()
           
 void testExportImportAssetLinks()
           
protected  void testExportImportAvailableLocales(Collection<Locale> sourceAvailableLocales, Collection<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()
           
 void testVersioning1()
           
 void testVersioning2()
           
 void testVersioningDeleteFirst()
           
 void testVersioningDeleteLatest()
           
 void testVersioningExportImportTwice()
           
protected  void validateImportedLinks(StagedModel originalStagedModel, StagedModel importedStagedModel)
           
protected  void validateVersions()
           
 
Methods inherited from class com.liferay.portal.lar.test.BaseExportImportTestCase
addAssetLink, addParameter, addParameter, addStagedModel, addStagedModel, deleteStagedModel, exportImportLayouts, exportLayouts, getAssetEntry, getExportParameterMap, getImportParameterMap, getStagedModel, getStagedModelUuid, importLayouts, setUp, tearDown, validateImportedStagedModel
 
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

testVersioning1

public void testVersioning1()
                     throws Exception
Throws:
Exception

testVersioning2

public void testVersioning2()
                     throws Exception
Throws:
Exception

testVersioningDeleteFirst

public void testVersioningDeleteFirst()
                               throws Exception
Throws:
Exception

testVersioningDeleteLatest

public void testVersioningDeleteLatest()
                                throws Exception
Throws:
Exception

testVersioningExportImportTwice

public void testVersioningExportImportTwice()
                                     throws Exception
Throws:
Exception

addParameter

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

addVersion

protected StagedModel addVersion(StagedModel stagedModel)
                          throws Exception
Throws:
Exception

deleteFirstVersion

protected void deleteFirstVersion(StagedModel stagedModel)
                           throws Exception
Throws:
Exception

deleteLatestVersion

protected void deleteLatestVersion(StagedModel stagedModel)
                            throws Exception
Throws:
Exception

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

getImportedPortletPreferences

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

isVersioningEnabled

protected boolean isVersioningEnabled()

testExportImportAvailableLocales

protected void testExportImportAvailableLocales(Collection<Locale> sourceAvailableLocales,
                                                Collection<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

validateVersions

protected void validateVersions()
                         throws Exception
Throws:
Exception

Liferay 7.0-ce-b4