Class BaseExportImportTestCase

java.lang.Object
com.liferay.exportimport.test.util.lar.BaseExportImportTestCase
Direct Known Subclasses:
BasePortletExportImportTestCase

public abstract class BaseExportImportTestCase extends Object
  • Field Details

    • group

      @DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group
    • importedGroup

      @DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group importedGroup
    • importedLayout

      protected com.liferay.portal.kernel.model.Layout importedLayout
    • larFile

      protected File larFile
    • layout

      protected com.liferay.portal.kernel.model.Layout layout
  • Constructor Details

    • BaseExportImportTestCase

      public BaseExportImportTestCase()
  • Method Details

    • importLayouts

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

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

      public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Throws:
      Exception
    • addAssetLink

      protected com.liferay.asset.link.model.AssetLink addAssetLink(com.liferay.portal.kernel.model.StagedModel sourceStagedModel, com.liferay.portal.kernel.model.StagedModel targetStagedModel, int weight) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.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 com.liferay.portal.kernel.model.StagedModel addStagedModel(long groupId) throws Exception
      Throws:
      Exception
    • addStagedModel

      protected com.liferay.portal.kernel.model.StagedModel addStagedModel(long groupId, Date createdDate) throws Exception
      Throws:
      Exception
    • deleteStagedModel

      protected void deleteStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel) throws Exception
      Throws:
      Exception
    • exportImportLayouts

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

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

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

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

      protected com.liferay.asset.kernel.model.AssetEntry getAssetEntry(com.liferay.portal.kernel.model.StagedModel stagedModel) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getExportParameterMap

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

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

      protected com.liferay.portal.test.log.LogCapture getLogCapture(boolean expectError)
    • getStagedModel

      protected com.liferay.portal.kernel.model.StagedModel getStagedModel(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getStagedModelUuid

      protected String getStagedModelUuid(com.liferay.portal.kernel.model.StagedModel stagedModel) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validateImportedStagedModel

      protected void validateImportedStagedModel(com.liferay.portal.kernel.model.StagedModel stagedModel, com.liferay.portal.kernel.model.StagedModel importedStagedModel) throws Exception
      Throws:
      Exception