|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.jboss.cache.tests.BdbjeUnitTestCase
Tests BdbjeCacheLoader directly via the CacheLoader interface.
Run this test case with the current directory set to the JE environment directory. Any scratch directory will do, but beware that all files in the directory will be deleted by setUp().
Constructor Summary | |
BdbjeUnitTestCase(String name)
Creates a test case. |
Method Summary | |
static void |
main(String[] args)
|
void |
setUp()
Deletes all files in the environment directory. |
static junit.framework.Test |
suite()
|
void |
tearDown()
Release all resources and ignore exceptions, to shutdown gracefully when an assertion fires. |
void |
testBasicExceptions()
Test exception cases and create/destroy/create/destroy sequence. |
void |
testBasicOperations()
Tests basic operations without a transaction. |
void |
testBasicOperationsTransactional()
Tests basic operations with a transaction. |
void |
testDatabaseName()
Test non-default database name. |
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 |
testTransactionExceptions()
Tests a non-transactional prepare. |
void |
testTransactionRollback()
Tests rollback of a two-phase transaction. |
void |
testTwoPhaseTransaction()
Tests a two-phase transaction. |
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 |
public BdbjeUnitTestCase(String name)
Method Detail |
public void setUp() throws Exception
Exception
public void tearDown() throws Exception
Exception
public void testBasicOperations() throws Exception
Exception
public void testBasicOperationsTransactional() throws Exception
Exception
public void testMultiLevelTree() throws Exception
Exception
public void testGetChildrenNames() throws Exception
Exception
public void testModifications() throws Exception
Exception
public void testModificationsTransactional() throws Exception
Exception
public void testOnePhaseTransaction() throws Exception
Exception
public void testTwoPhaseTransaction() throws Exception
Exception
public void testTransactionRollback() throws Exception
Exception
public void testBasicExceptions() throws Exception
Exception
public void testTransactionExceptions() throws Exception
Exception
public void testNullKeysAndValues() throws Exception
Exception
public void testDatabaseName() throws Exception
Exception
public void testLoadAndStore() throws Exception
Exception
public static junit.framework.Test suite() throws Exception
Exception
public static void main(String[] args) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |