org.olat.core.commons.persistence
Class DBTest

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

public class DBTest
extends OlatTestCase

A DBTest is used to test the persistence package.

Author:
Andreas Ch. Kapp

Constructor Summary
DBTest(java.lang.String name)
          Default construcotr.
 
Method Summary
 void setUp()
           
static junit.framework.Test suite()
           
 void testCloseOfUninitializedSession()
          testCloseOfUninitializedSession
 void testConcurrentUpdate()
          Test concurrent updating.
 void testDbPerf()
           
 void testDBUTF8capable()
           
 void testErrorHandling()
          testErrorHandling
 void testFindObject()
           
 void testMixedNonTransactional_Transactional()
           
 void testRollback()
           
 void testRollbackNonTransactional()
           
 
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

DBTest

public DBTest(java.lang.String name)
Default construcotr.

Parameters:
name -
Method Detail

testCloseOfUninitializedSession

public void testCloseOfUninitializedSession()
testCloseOfUninitializedSession


testErrorHandling

public void testErrorHandling()
testErrorHandling


testRollback

public void testRollback()

testMixedNonTransactional_Transactional

public void testMixedNonTransactional_Transactional()

testRollbackNonTransactional

public void testRollbackNonTransactional()

testConcurrentUpdate

public void testConcurrentUpdate()
Test concurrent updating. DbWorker threads updates concurrent db.


testDbPerf

public void testDbPerf()

testDBUTF8capable

public void testDBUTF8capable()

testFindObject

public void testFindObject()

setUp

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

suite

public static junit.framework.Test suite()
Returns:
Test