Liferay 7.0-ce-b4

com.liferay.portal.lar.test
Class BaseExportImportTestCase

java.lang.Object
  extended by com.liferay.portal.lar.test.BaseExportImportTestCase
Direct Known Subclasses:
BasePortletExportImportTestCase

public class BaseExportImportTestCase
extends Object


Field Summary
protected  Group group
           
protected  Group importedGroup
           
protected  Layout importedLayout
           
protected  File larFile
           
protected  Layout layout
           
 
Constructor Summary
BaseExportImportTestCase()
           
 
Method Summary
protected  AssetLink addAssetLink(StagedModel sourceStagedModel, StagedModel targetStagedModel, int weight)
           
protected  void addParameter(Map<String,String[]> parameterMap, String name, String value)
           
protected  void addParameter(Map<String,String[]> parameterMap, String namespace, String name, boolean value)
           
protected  StagedModel addStagedModel(long groupId)
           
protected  StagedModel addStagedModel(long groupId, Date createdDate)
           
protected  void deleteStagedModel(StagedModel stagedModel)
           
protected  void exportImportLayouts(long[] layoutIds, Map<String,String[]> parameterMap)
           
protected  void exportLayouts(long[] layoutIds, Map<String,String[]> parameterMap)
           
protected  AssetEntry getAssetEntry(StagedModel stagedModel)
           
protected  Map<String,String[]> getExportParameterMap()
           
protected  Map<String,String[]> getImportParameterMap()
           
protected  StagedModel getStagedModel(String uuid, long groupId)
           
protected  String getStagedModelUuid(StagedModel stagedModel)
           
 void importLayouts(Map<String,String[]> parameterMap)
           
 void setUp()
           
 void tearDown()
           
protected  void validateImportedStagedModel(StagedModel stagedModel, StagedModel importedStagedModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

group

@DeleteAfterTestRun
protected Group group

importedGroup

@DeleteAfterTestRun
protected Group importedGroup

importedLayout

protected Layout importedLayout

larFile

protected File larFile

layout

protected Layout layout
Constructor Detail

BaseExportImportTestCase

public BaseExportImportTestCase()
Method Detail

importLayouts

public void importLayouts(Map<String,String[]> parameterMap)
                   throws Exception
Throws:
Exception

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              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,
                            String value)

addParameter

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

addStagedModel

protected StagedModel addStagedModel(long groupId)
                              throws Exception
Throws:
Exception

addStagedModel

protected StagedModel addStagedModel(long groupId,
                                     Date createdDate)
                              throws Exception
Throws:
Exception

deleteStagedModel

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

exportImportLayouts

protected void exportImportLayouts(long[] layoutIds,
                                   Map<String,String[]> parameterMap)
                            throws Exception
Throws:
Exception

exportLayouts

protected void exportLayouts(long[] layoutIds,
                             Map<String,String[]> parameterMap)
                      throws Exception
Throws:
Exception

getAssetEntry

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

getExportParameterMap

protected Map<String,String[]> getExportParameterMap()
                                              throws Exception
Throws:
Exception

getImportParameterMap

protected Map<String,String[]> getImportParameterMap()
                                              throws Exception
Throws:
Exception

getStagedModel

protected StagedModel getStagedModel(String uuid,
                                     long groupId)
                              throws PortalException
Throws:
PortalException

getStagedModelUuid

protected String getStagedModelUuid(StagedModel stagedModel)
                             throws PortalException
Throws:
PortalException

validateImportedStagedModel

protected void validateImportedStagedModel(StagedModel stagedModel,
                                           StagedModel importedStagedModel)
                                    throws Exception
Throws:
Exception

Liferay 7.0-ce-b4