org.alfresco.repo.notification
Class NotificationServiceImplSystemTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.util.RetryingTransactionHelperTestCase
              extended by org.alfresco.util.BaseAlfrescoTestCase
                  extended by org.alfresco.repo.notification.NotificationServiceImplSystemTest
All Implemented Interfaces:
junit.framework.Test

public class NotificationServiceImplSystemTest
extends BaseAlfrescoTestCase

Notification service implementation test.

Since:
4.0

Nested Class Summary
static interface NotificationServiceImplSystemTest.NotificationReceiver
          Implementations of this interface can be injected into the NotificationServiceImplSystemTest.TestNotificationProvider in order to receive notifications.
static class NotificationServiceImplSystemTest.TestNotificationProvider
          This NotificationProvider is intended for use in test code in order to validate the content/state of notifications.
 
Nested classes/interfaces inherited from class org.alfresco.util.RetryingTransactionHelperTestCase
RetryingTransactionHelperTestCase.FailureTest, RetryingTransactionHelperTestCase.Test
 
Field Summary
 
Fields inherited from class org.alfresco.util.BaseAlfrescoTestCase
actionService, authenticationComponent, contentService, ctx, nodeService, retryingTransactionHelper, rootNodeRef, serviceRegistry, storeRef, transactionService
 
Constructor Summary
NotificationServiceImplSystemTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testSimpleEmailNotification()
           
 void testTemplateEmailNotification()
           
 void testTestNotificationProvider()
          This method tests the NotificationServiceImplSystemTest.TestNotificationProvider.
protected  boolean useSpacesStore()
           
 
Methods inherited from class org.alfresco.util.BaseAlfrescoTestCase
getRetryingTransactionHelper, setUpContext
 
Methods inherited from class org.alfresco.util.RetryingTransactionHelperTestCase
doTestInTransaction, doTestInTransaction, doTestInTransaction, doTestInTransaction
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationServiceImplSystemTest

public NotificationServiceImplSystemTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class BaseAlfrescoTestCase
Throws:
java.lang.Exception
See Also:
TestCase.setUp()

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class BaseAlfrescoTestCase
Throws:
java.lang.Exception
See Also:
TestCase.tearDown()

useSpacesStore

protected boolean useSpacesStore()
Overrides:
useSpacesStore in class BaseAlfrescoTestCase
Returns:
true if using spaces store, otherwise creates own store

testSimpleEmailNotification

public void testSimpleEmailNotification()

testTemplateEmailNotification

public void testTemplateEmailNotification()

testTestNotificationProvider

public void testTestNotificationProvider()
                                  throws java.lang.Exception
This method tests the NotificationServiceImplSystemTest.TestNotificationProvider.

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.