Class BaseUserNotificationTestCase
java.lang.Object
com.liferay.portal.notifications.test.util.BaseUserNotificationTestCase
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.liferay.portal.kernel.model.BaseModel<?> protected voidprotected abstract Stringprotected List<com.liferay.portal.kernel.json.JSONObject> getUserNotificationEventsJSONObjects(long userId) protected booleanisValidUserNotificationEventObject(long primaryKey, com.liferay.portal.kernel.json.JSONObject userNotificationEventJSONObject) voidsetUp()protected abstract voidvoidtearDown()voidvoidvoidvoidvoidvoidvoidvoidprotected abstract com.liferay.portal.kernel.model.BaseModel<?> updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
-
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
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testAddUserNotification
- Throws:
Exception
-
testAddUserNotificationWhenEmailNotificationsDisabled
- Throws:
Exception
-
testAddUserNotificationWhenNotificationsDisabled
- Throws:
Exception
-
testAddUserNotificationWhenWebsiteNotificationsDisabled
- Throws:
Exception
-
testUpdateUserNotification
- Throws:
Exception
-
testUpdateUserNotificationWhenEmailNotificationsDisabled
- Throws:
Exception
-
testUpdateUserNotificationWhenNotificationsDisabled
- Throws:
Exception
-
testUpdateUserNotificationWhenWebsiteNotificationsDisabled
- Throws:
Exception
-
addBaseModel
- Throws:
Exception
-
addContainerModel
- Throws:
Exception
-
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
- Throws:
Exception
-
updateBaseModel
protected abstract com.liferay.portal.kernel.model.BaseModel<?> updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel) throws Exception - Throws:
Exception
-