Class BaseExternalReferenceCodeUpgradeProcessTestCase

java.lang.Object
com.liferay.portal.upgrade.test.util.BaseExternalReferenceCodeUpgradeProcessTestCase

public abstract class BaseExternalReferenceCodeUpgradeProcessTestCase extends Object
  • Field Details

    • aggregateTestRule

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

      protected static DataSource dataSource
    • db

      protected static com.liferay.portal.kernel.dao.db.DB db
    • entityCache

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

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

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

      protected com.liferay.portal.kernel.service.ServiceContext serviceContext
  • Constructor Details

    • BaseExternalReferenceCodeUpgradeProcessTestCase

      public BaseExternalReferenceCodeUpgradeProcessTestCase()
  • Method Details

    • setUpClass

      public static void setUpClass() throws Exception
      Throws:
      Exception
    • setUp

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

      public void tearDown()
    • testUpgradeProcess

      public void testUpgradeProcess() throws Exception
      Throws:
      Exception
    • addExternalReferenceCodeModels

      protected abstract com.liferay.portal.kernel.model.ExternalReferenceCodeModel[] addExternalReferenceCodeModels(String tableName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • assertExternalReferenceCode

      protected void assertExternalReferenceCode(String[] externalReferenceCodes, boolean hasGroupIdColumn, String tableName) throws Exception
      Throws:
      Exception
    • fetchExternalReferenceCodeModel

      protected abstract com.liferay.portal.kernel.model.ExternalReferenceCodeModel fetchExternalReferenceCodeModel(com.liferay.portal.kernel.model.ExternalReferenceCodeModel externalReferenceCodeModel, String tableName) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getExternalReferenceCode

      protected String getExternalReferenceCode(com.liferay.portal.kernel.model.ExternalReferenceCodeModel externalReferenceCodeModel, String tableName)
    • getTableNames

      protected abstract String[] getTableNames()
    • 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()
    • updateExternalReferenceCode

      protected void updateExternalReferenceCode(String[] externalReferenceCodes, boolean hasGroupIdColumn, String tableName) throws Exception
      Throws:
      Exception