org.jboss.cache.tests
Class CacheLoaderTests

java.lang.Object
  extended byTestCase
      extended byorg.jboss.cache.tests.CacheLoaderTests

public abstract class CacheLoaderTests
extends TestCase

Commons tests for all CacheLoaders

See Also:
Serialized Form

Constructor Summary
CacheLoaderTests()
           
 
Method Summary
protected abstract  void configureCache()
           
static void main(java.lang.String[] args)
           
protected  void setUp()
           
static Test suite()
           
protected  void tearDown()
           
 void testBasicOperations()
          Tests basic operations without a transaction.
 void testBasicOperationsTransactional()
          Tests basic operations with a transaction.
 void testCacheLoading2()
           
 void testDatabaseName()
          Test non-default database name.
 void testEvictionWithCacheLoader()
           
 void testEvictionWithCacheLoader2()
           
 void testEvictionWithGetChildrenNames()
           
 void testExists()
           
 void testGetChildren()
           
 void testGetChildren2()
           
 void testGetChildren3()
           
 void testGetChildren4()
           
 void testGetChildrenNames()
          Tests the getChildrenNames() method.
 void testLoadAndStore()
          Test load/store state.
 void testModifications()
          Tests basic operations without a transaction.
 void testModificationsTransactional()
          Tests basic operations with a transaction.
 void testMultiLevelTree()
          Tests creating implicit intermediate nodes when a leaf node is created, and tests removing subtrees.
 void testNullKeysAndValues()
          Tests that null keys and values work as for a standard Java Map.
 void testOnePhaseTransaction()
          Tests a one-phase transaction.
 void testPopulate()
          Just adds some data that wil be later retrieved.
 void testPreloading()
           
 void testPrint()
           
 void testPut()
           
 void testRemove()
           
 void testRemoveData()
           
 void testRemoveData2()
           
 void testRemoveData3()
           
 void testRemoveKey()
           
 void testRemoveKey2()
           
 void testRemoveKey3()
           
 void testRemoveRoot()
           
 void testSerialization()
           
 void testTransactionRollback()
          Tests rollback of a two-phase transaction.
 void testTwoPhaseTransaction()
          Tests a two-phase transaction.
 void testTxPutCommit()
           
 void testTxPutRollback()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheLoaderTests

public CacheLoaderTests()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

configureCache

protected abstract void configureCache()
                                throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testPrint

public void testPrint()
               throws CacheException (src) 
Throws:
CacheException (src)

testPut

public void testPut()
             throws CacheException (src) 
Throws:
CacheException (src)

testSerialization

public void testSerialization()
                       throws CacheException (src) 
Throws:
CacheException (src)

testPopulate

public void testPopulate()
Just adds some data that wil be later retrieved. This test has to be run first


testPreloading

public void testPreloading()
                    throws CacheException (src) 
Throws:
CacheException (src)

testCacheLoading2

public void testCacheLoading2()
                       throws CacheException (src) 
Throws:
CacheException (src)

testExists

public void testExists()
                throws java.lang.Exception
Throws:
java.lang.Exception

testGetChildren

public void testGetChildren()

testGetChildren2

public void testGetChildren2()

testGetChildren3

public void testGetChildren3()

testGetChildren4

public void testGetChildren4()

testRemoveData

public void testRemoveData()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveData2

public void testRemoveData2()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveData3

public void testRemoveData3()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveKey

public void testRemoveKey()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveKey2

public void testRemoveKey2()
                    throws CacheException (src) 
Throws:
CacheException (src)

testRemoveKey3

public void testRemoveKey3()
                    throws CacheException (src) 
Throws:
CacheException (src)

testRemove

public void testRemove()
                throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveRoot

public void testRemoveRoot()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testEvictionWithCacheLoader

public void testEvictionWithCacheLoader()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testEvictionWithCacheLoader2

public void testEvictionWithCacheLoader2()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testEvictionWithGetChildrenNames

public void testEvictionWithGetChildrenNames()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testTxPutCommit

public void testTxPutCommit()
                     throws java.lang.Exception,
                            NotSupportedException (src) 
Throws:
java.lang.Exception
NotSupportedException (src)

testTxPutRollback

public void testTxPutRollback()
                       throws java.lang.Exception,
                              NotSupportedException (src) 
Throws:
java.lang.Exception
NotSupportedException (src)

testBasicOperations

public void testBasicOperations()
                         throws java.lang.Exception
Tests basic operations without a transaction.

Throws:
java.lang.Exception

testBasicOperationsTransactional

public void testBasicOperationsTransactional()
                                      throws java.lang.Exception
Tests basic operations with a transaction.

Throws:
java.lang.Exception

testMultiLevelTree

public void testMultiLevelTree()
                        throws java.lang.Exception
Tests creating implicit intermediate nodes when a leaf node is created, and tests removing subtrees.

Throws:
java.lang.Exception

testGetChildrenNames

public void testGetChildrenNames()
                          throws java.lang.Exception
Tests the getChildrenNames() method.

Throws:
java.lang.Exception

testModifications

public void testModifications()
                       throws java.lang.Exception
Tests basic operations without a transaction.

Throws:
java.lang.Exception

testModificationsTransactional

public void testModificationsTransactional()
                                    throws java.lang.Exception
Tests basic operations with a transaction.

Throws:
java.lang.Exception

testOnePhaseTransaction

public void testOnePhaseTransaction()
                             throws java.lang.Exception
Tests a one-phase transaction.

Throws:
java.lang.Exception

testTwoPhaseTransaction

public void testTwoPhaseTransaction()
                             throws java.lang.Exception
Tests a two-phase transaction.

Throws:
java.lang.Exception

testTransactionRollback

public void testTransactionRollback()
                             throws java.lang.Exception
Tests rollback of a two-phase transaction.

Throws:
java.lang.Exception

testNullKeysAndValues

public void testNullKeysAndValues()
                           throws java.lang.Exception
Tests that null keys and values work as for a standard Java Map.

Throws:
java.lang.Exception

testDatabaseName

public void testDatabaseName()
                      throws java.lang.Exception
Test non-default database name.

Throws:
java.lang.Exception

testLoadAndStore

public void testLoadAndStore()
                      throws java.lang.Exception
Test load/store state.

Throws:
java.lang.Exception

suite

public static Test suite()

main

public static void main(java.lang.String[] args)