com.liferay.portlet.notifications.test
Class BaseUserNotificationTestCase
java.lang.Object
com.liferay.portlet.notifications.test.BaseUserNotificationTestCase
public abstract class BaseUserNotificationTestCase
- extends Object
|
Field Summary |
protected com.liferay.portal.kernel.model.Group |
group
|
protected com.liferay.portal.kernel.model.User |
user
|
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> |
userNotificationDeliveries
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
group
@DeleteAfterTestRun
protected com.liferay.portal.kernel.model.Group group
user
@DeleteAfterTestRun
protected com.liferay.portal.kernel.model.User user
userNotificationDeliveries
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> userNotificationDeliveries
BaseUserNotificationTestCase
public BaseUserNotificationTestCase()
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
deleteUserNotificationDeliveries
protected void deleteUserNotificationDeliveries()
throws Exception
- Throws:
Exception
deleteUserNotificationEvents
protected void deleteUserNotificationEvents(long userId)
throws Exception
- Throws:
Exception
getPortletId
protected abstract String getPortletId()
getUserNotificationDeliveries
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> getUserNotificationDeliveries(long userId)
throws Exception
- Throws:
Exception
getUserNotificationEventsJSONObjects
protected List<com.liferay.portal.kernel.json.JSONObject> getUserNotificationEventsJSONObjects(long userId,
long primaryKey)
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
updateUserNotificationDelivery
protected void updateUserNotificationDelivery(int notificationType,
int deliveryType,
boolean deliver)
throws Exception
- Throws:
Exception
updateUserNotificationsDelivery
protected void updateUserNotificationsDelivery(boolean deliver)
throws Exception
- Throws:
Exception