org.olat.core.util.locks
Class SynchManagerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.olat.core.util.locks.SynchManagerTest
All Implemented Interfaces:
junit.framework.Test

public class SynchManagerTest
extends junit.framework.TestCase

Author:
Christian Guretzki

Constructor Summary
SynchManagerTest(java.lang.String name)
           
 
Method Summary
static junit.framework.Test suite()
           
 void testGetSynchLockFor()
          Creates 3 OLAT-resourceable, two with same key, one with an other key.
 
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

SynchManagerTest

public SynchManagerTest(java.lang.String name)
Parameters:
name -
Method Detail

testGetSynchLockFor

public void testGetSynchLockFor()
                         throws java.lang.Exception
Creates 3 OLAT-resourceable, two with same key, one with an other key. Compare the resulting synchronization objects. With the same key, the synch objects must be same objects. With different key, the synch objects must be different objects.

Throws:
java.lang.Exception

suite

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