Class BasePermissionTestCase

java.lang.Object
com.liferay.portal.security.permission.test.util.BasePermissionTestCase

public abstract class BasePermissionTestCase extends Object
  • Field Details

    • group

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

      protected com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker
    • serviceContext

      protected com.liferay.portal.kernel.service.ServiceContext serviceContext
    • user

      @DeleteAfterTestRun protected com.liferay.portal.kernel.model.User user
  • Constructor Details

    • BasePermissionTestCase

      public BasePermissionTestCase()
  • Method Details

    • setUp

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

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

      protected void addPortletModelViewPermission() throws Exception
      Throws:
      Exception
    • doSetUp

      protected abstract void doSetUp() throws Exception
      Throws:
      Exception
    • getPrimKey

      protected String getPrimKey()
    • getResourceName

      protected abstract String getResourceName()
    • getRoleName

      protected String getRoleName()
    • removePortletModelViewPermission

      protected void removePortletModelViewPermission() throws Exception
      Throws:
      Exception