站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 Cache API Documentation 英文版文档

CacheLoaderTests (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档


org.jboss.cache.tests
Class CacheLoaderTests

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jboss.cache.tests.CacheLoaderTests
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BdbjeCacheLoaderTest, DelegatingCacheLoaderTest, FileCacheLoaderTest, JDBCCacheLoaderTest

public abstract class CacheLoaderTests
extends junit.framework.TestCase

Commons tests for all CacheLoaders

Version:
$Id: CacheLoaderTests.java,v 1.3.2.2 2004/12/14 08:19:24 starksm Exp $
Author:
Bela Ban

Constructor Summary
CacheLoaderTests()
           
 
Method Summary
protected abstract  void configureCache()
           
static void main(String[] args)
           
protected  void setUp()
           
static junit.framework.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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheLoaderTests

public CacheLoaderTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

configureCache

protected abstract void configureCache()
                                throws Exception
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

testPrint

public void testPrint()
               throws CacheException
Throws:
CacheException

testPut

public void testPut()
             throws CacheException
Throws:
CacheException

testSerialization

public void testSerialization()
                       throws CacheException
Throws:
CacheException

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
Throws:
CacheException

testCacheLoading2

public void testCacheLoading2()
                       throws CacheException
Throws:
CacheException

testExists

public void testExists()
                throws Exception
Throws:
Exception

testGetChildren

public void testGetChildren()

testGetChildren2

public void testGetChildren2()

testGetChildren3

public void testGetChildren3()

testGetChildren4

public void testGetChildren4()

testRemoveData

public void testRemoveData()
                    throws Exception
Throws:
Exception

testRemoveData2

public void testRemoveData2()
                     throws Exception
Throws:
Exception

testRemoveData3

public void testRemoveData3()
                     throws Exception
Throws:
Exception

testRemoveKey

public void testRemoveKey()
                   throws Exception
Throws:
Exception

testRemoveKey2

public void testRemoveKey2()
                    throws CacheException
Throws:
CacheException

testRemoveKey3

public void testRemoveKey3()
                    throws CacheException
Throws:
CacheException

testRemove

public void testRemove()
                throws Exception
Throws:
Exception

testRemoveRoot

public void testRemoveRoot()
                    throws Exception
Throws:
Exception

testEvictionWithCacheLoader

public void testEvictionWithCacheLoader()
                                 throws Exception
Throws:
Exception

testEvictionWithCacheLoader2

public void testEvictionWithCacheLoader2()
                                  throws Exception
Throws:
Exception

testEvictionWithGetChildrenNames

public void testEvictionWithGetChildrenNames()
                                      throws Exception
Throws:
Exception

testTxPutCommit

public void testTxPutCommit()
                     throws Exception,
                            NotSupportedException
Throws:
Exception
NotSupportedException

testTxPutRollback

public void testTxPutRollback()
                       throws Exception,
                              NotSupportedException
Throws:
Exception
NotSupportedException

testBasicOperations

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

Throws:
Exception

testBasicOperationsTransactional

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

Throws:
Exception

testMultiLevelTree

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

Throws:
Exception

testGetChildrenNames

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

Throws:
Exception

testModifications

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

Throws:
Exception

testModificationsTransactional

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

Throws:
Exception

testOnePhaseTransaction

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

Throws:
Exception

testTwoPhaseTransaction

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

Throws:
Exception

testTransactionRollback

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

Throws:
Exception

testNullKeysAndValues

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

Throws:
Exception

testDatabaseName

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

Throws:
Exception

testLoadAndStore

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

Throws:
Exception

suite

public static junit.framework.Test suite()

main

public static void main(String[] args)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.