org.olat.notifications
Class NotificationsManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.olat.core.test.OlatTestCase
              extended by org.olat.notifications.NotificationsManagerTest
All Implemented Interfaces:
junit.framework.Test

public class NotificationsManagerTest
extends OlatTestCase

Initial Date: Dec 9, 2004

Author:
Felix Jost Comment:

Constructor Summary
NotificationsManagerTest(java.lang.String arg0)
           
 
Method Summary
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testConcurrentFindOrCreatePublisher()
          Test synchronized 'findOrCreatePublisher' triggered by method 'subscribe'.
 void testSubscriptions()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationsManagerTest

public NotificationsManagerTest(java.lang.String arg0)
Parameters:
arg0 -
Method Detail

suite

public static junit.framework.Test suite()
                                  throws java.lang.Exception
Returns:
Test
Throws:
java.lang.Exception

setUp

public void setUp()
Overrides:
setUp in class junit.framework.TestCase
See Also:
TestCase.setUp()

tearDown

public void tearDown()
Overrides:
tearDown in class junit.framework.TestCase
See Also:
TestCase.tearDown()

testSubscriptions

public void testSubscriptions()

testConcurrentFindOrCreatePublisher

public void testConcurrentFindOrCreatePublisher()
Test synchronized 'findOrCreatePublisher' triggered by method 'subscribe'. Start 2 threads which call 'subscribe' with same SubscriptionContext. Breakpoint at doInSync, second thread must wait until thread 1 has released the breakpoint.