Class BaseUserNotificationTestCase

java.lang.Object
com.liferay.portal.notifications.test.util.BaseUserNotificationTestCase

public abstract class BaseUserNotificationTestCase extends Object
  • Field Details

    • group

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

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

    • BaseUserNotificationTestCase

      public BaseUserNotificationTestCase()
  • Method Details

    • setUp

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

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

      public void testAddUserNotification() throws Exception
      Throws:
      Exception
    • testAddUserNotificationWhenEmailNotificationsDisabled

      public void testAddUserNotificationWhenEmailNotificationsDisabled() throws Exception
      Throws:
      Exception
    • testAddUserNotificationWhenNotificationsDisabled

      public void testAddUserNotificationWhenNotificationsDisabled() throws Exception
      Throws:
      Exception
    • testAddUserNotificationWhenWebsiteNotificationsDisabled

      public void testAddUserNotificationWhenWebsiteNotificationsDisabled() throws Exception
      Throws:
      Exception
    • testUpdateUserNotification

      public void testUpdateUserNotification() throws Exception
      Throws:
      Exception
    • testUpdateUserNotificationWhenEmailNotificationsDisabled

      public void testUpdateUserNotificationWhenEmailNotificationsDisabled() throws Exception
      Throws:
      Exception
    • testUpdateUserNotificationWhenNotificationsDisabled

      public void testUpdateUserNotificationWhenNotificationsDisabled() throws Exception
      Throws:
      Exception
    • testUpdateUserNotificationWhenWebsiteNotificationsDisabled

      public void testUpdateUserNotificationWhenWebsiteNotificationsDisabled() throws Exception
      Throws:
      Exception
    • addBaseModel

      protected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModel() throws Exception
      Throws:
      Exception
    • addContainerModel

      protected void addContainerModel() throws Exception
      Throws:
      Exception
    • getPortletId

      protected abstract String getPortletId()
    • getUserNotificationEventsJSONObjects

      protected List<com.liferay.portal.kernel.json.JSONObject> getUserNotificationEventsJSONObjects(long userId) throws Exception
      Throws:
      Exception
    • isValidUserNotificationEventObject

      protected boolean isValidUserNotificationEventObject(long primaryKey, com.liferay.portal.kernel.json.JSONObject userNotificationEventJSONObject) throws Exception
      Throws:
      Exception
    • subscribeToContainer

      protected abstract void subscribeToContainer() throws Exception
      Throws:
      Exception
    • updateBaseModel

      protected abstract com.liferay.portal.kernel.model.BaseModel<?> updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel) throws Exception
      Throws:
      Exception