public static class NotificationServiceImplSystemTest.TestNotificationProvider extends java.lang.Object implements NotificationProvider
NotificationProvider is intended for use in test code in order to validate the
content/state of notifications. It could, for example, be used in a test context as a drop-in
replacement for the EMailNotificationProvider for validation and/or to prevent emails being
sent from test code.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
NotificationServiceImplSystemTest.TestNotificationProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Gets the name of the notification provider.
|
void |
init()
Init method registers provider with notification service.
|
void |
sendNotification(NotificationContext notificationContext)
Sends a notification using the notification provider.
|
void |
setNotificationReceiver(NotificationServiceImplSystemTest.NotificationReceiver notificationReceiver) |
void |
setNotificationService(NotificationService notificationService) |
public NotificationServiceImplSystemTest.TestNotificationProvider()
public void setNotificationService(NotificationService notificationService)
public void setNotificationReceiver(NotificationServiceImplSystemTest.NotificationReceiver notificationReceiver)
public void init()
public java.lang.String getName()
NotificationProvidergetName in interface NotificationProviderpublic void sendNotification(NotificationContext notificationContext)
NotificationProvidersendNotification in interface NotificationProvidernotificationContext - notification contextCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.