public abstract class BaseUserNotificationTestCase
extends Object
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
BaseUserNotificationTestCase() |
Modifier and Type | Method and Description |
---|---|
protected abstract com.liferay.portal.kernel.model.BaseModel<?> |
addBaseModel() |
protected void |
addContainerModel() |
protected void |
deleteUserNotificationDeliveries() |
protected void |
deleteUserNotificationEvents(long userId) |
protected abstract String |
getPortletId() |
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> |
getUserNotificationDeliveries(long userId) |
protected List<com.liferay.portal.kernel.json.JSONObject> |
getUserNotificationEventsJSONObjects(long userId,
long primaryKey) |
protected boolean |
isValidUserNotificationEventObject(long primaryKey,
com.liferay.portal.kernel.json.JSONObject userNotificationEventJSONObject) |
void |
setUp() |
protected abstract void |
subscribeToContainer() |
void |
tearDown() |
void |
testAddUserNotification() |
void |
testAddUserNotificationWhenEmailNotificationsDisabled() |
void |
testAddUserNotificationWhenNotificationsDisabled() |
void |
testAddUserNotificationWhenWebsiteNotificationsDisabled() |
void |
testUpdateUserNotification() |
void |
testUpdateUserNotificationWhenEmailNotificationsDisabled() |
void |
testUpdateUserNotificationWhenNotificationsDisabled() |
void |
testUpdateUserNotificationWhenWebsiteNotificationsDisabled() |
protected abstract com.liferay.portal.kernel.model.BaseModel<?> |
updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
protected void |
updateUserNotificationDelivery(int notificationType,
int deliveryType,
boolean deliver) |
protected void |
updateUserNotificationsDelivery(boolean deliver) |
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.Group group
@DeleteAfterTestRun protected com.liferay.portal.kernel.model.User user
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> userNotificationDeliveries
public void setUp() throws Exception
Exception
public void tearDown() throws Exception
Exception
public void testAddUserNotification() throws Exception
Exception
public void testAddUserNotificationWhenEmailNotificationsDisabled() throws Exception
Exception
public void testAddUserNotificationWhenNotificationsDisabled() throws Exception
Exception
public void testAddUserNotificationWhenWebsiteNotificationsDisabled() throws Exception
Exception
public void testUpdateUserNotification() throws Exception
Exception
public void testUpdateUserNotificationWhenEmailNotificationsDisabled() throws Exception
Exception
public void testUpdateUserNotificationWhenNotificationsDisabled() throws Exception
Exception
public void testUpdateUserNotificationWhenWebsiteNotificationsDisabled() throws Exception
Exception
protected abstract com.liferay.portal.kernel.model.BaseModel<?> addBaseModel() throws Exception
Exception
protected void addContainerModel() throws Exception
Exception
protected void deleteUserNotificationDeliveries() throws Exception
Exception
protected void deleteUserNotificationEvents(long userId) throws Exception
Exception
protected abstract String getPortletId()
protected List<com.liferay.portal.kernel.model.UserNotificationDelivery> getUserNotificationDeliveries(long userId) throws Exception
Exception
protected List<com.liferay.portal.kernel.json.JSONObject> getUserNotificationEventsJSONObjects(long userId, long primaryKey) throws Exception
Exception
protected boolean isValidUserNotificationEventObject(long primaryKey, com.liferay.portal.kernel.json.JSONObject userNotificationEventJSONObject) throws Exception
Exception
protected abstract void subscribeToContainer() throws Exception
Exception
protected abstract com.liferay.portal.kernel.model.BaseModel<?> updateBaseModel(com.liferay.portal.kernel.model.BaseModel<?> baseModel) throws Exception
Exception
protected void updateUserNotificationDelivery(int notificationType, int deliveryType, boolean deliver) throws Exception
Exception
protected void updateUserNotificationsDelivery(boolean deliver) throws Exception
Exception