Class BaseUpgradePortletPreferencesTestCase

java.lang.Object
com.liferay.portlet.display.template.test.util.BaseUpgradePortletPreferencesTestCase

public abstract class BaseUpgradePortletPreferencesTestCase extends Object
  • Field Details

    • aggregateTestRule

      public static final com.liferay.portal.kernel.test.rule.AggregateTestRule aggregateTestRule
    • entityCache

      protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache
    • group

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

      protected com.liferay.portal.kernel.service.GroupLocalService groupLocalService
    • layout

      protected com.liferay.portal.kernel.model.Layout layout
    • multiVMPool

      protected com.liferay.portal.kernel.cache.MultiVMPool multiVMPool
    • portletId

      protected String portletId
  • Constructor Details

    • BaseUpgradePortletPreferencesTestCase

      public BaseUpgradePortletPreferencesTestCase()
  • Method Details

    • setUp

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

      public void testUpgradeWithDisplayStyleGroupIdDifferentGroup() throws Exception
      Throws:
      Exception
    • testUpgradeWithDisplayStyleGroupIdGlobalGroup

      public void testUpgradeWithDisplayStyleGroupIdGlobalGroup() throws Exception
      Throws:
      Exception
    • testUpgradeWithDisplayStyleGroupIdMissingGroup

      public void testUpgradeWithDisplayStyleGroupIdMissingGroup() throws Exception
      Throws:
      Exception
    • testUpgradeWithDisplayStyleGroupIdSameGroup

      public void testUpgradeWithDisplayStyleGroupIdSameGroup() throws Exception
      Throws:
      Exception
    • testUpgradeWithDisplayStyleGroupKeyDifferentGroup

      public void testUpgradeWithDisplayStyleGroupKeyDifferentGroup() throws Exception
      Throws:
      Exception
    • testUpgradeWithDisplayStyleGroupKeyGlobalGroup

      public void testUpgradeWithDisplayStyleGroupKeyGlobalGroup() throws Exception
      Throws:
      Exception
    • testUpgradeWithDisplayStyleGroupKeyMissingGroup

      public void testUpgradeWithDisplayStyleGroupKeyMissingGroup() throws Exception
      Throws:
      Exception
    • testUpgradeWithDisplayStyleGroupKeySameGroup

      public void testUpgradeWithDisplayStyleGroupKeySameGroup() throws Exception
      Throws:
      Exception
    • testUpgradeWithNullDisplayStyleGroup

      public void testUpgradeWithNullDisplayStyleGroup() throws Exception
      Throws:
      Exception
    • assertPortletPreferences

      protected void assertPortletPreferences(Map<String,String> expectedMap) throws Exception
      Throws:
      Exception
    • assertPortletPreferences

      protected void assertPortletPreferences(Map<String,String> expectedMap, long ownerId, int ownerType, long plid)
    • getPortletId

      protected abstract String getPortletId()
    • getUpgradeProcess

      protected com.liferay.portal.kernel.upgrade.UpgradeProcess getUpgradeProcess()
    • getUpgradeStepRegistrator

      protected abstract com.liferay.portal.upgrade.registry.UpgradeStepRegistrator getUpgradeStepRegistrator()
    • getVersion

      protected abstract com.liferay.portal.kernel.version.Version getVersion()
    • runUpgrade

      protected void runUpgrade() throws Exception
      Throws:
      Exception
    • testUpgrade

      protected void testUpgrade(Map<String,String> map) throws Exception
      Throws:
      Exception
    • testUpgrade

      protected void testUpgrade(Map<String,String> expectedMap, Map<String,String> map) throws Exception
      Throws:
      Exception
    • testUpgrade

      protected void testUpgrade(Map<String,String> expectedMap, Map<String,String> map, int ownerType, long plid) throws Exception
      Throws:
      Exception
    • updateLayoutPortletPreference

      protected void updateLayoutPortletPreference(Map<String,String> portletPreferencesMap) throws Exception
      Throws:
      Exception