ozone core API

test.tx
Class TxTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bytest.OzoneTestCase
              extended bytest.tx.TxTest
All Implemented Interfaces:
junit.framework.Test

public class TxTest
extends test.OzoneTestCase

Version:
$Revision$Date$
Author:
SMB

Field Summary
private  Group group
           
private static org.apache.log4j.Logger log
          log4j logger
private  org.ozoneDB.ExternalTransaction tx
           
 
Fields inherited from class test.OzoneTestCase
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TxTest(java.lang.String name)
           
 
Method Summary
static void addSuite(junit.framework.TestSuite suite)
           
protected static void print(Group g)
           
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testExternalAbort()
           
 void testExternalAbortAfterCrash()
           
 void testExternalCommit()
           
 void testMultipleThreadsPerTransaction()
           
 
Methods inherited from class test.OzoneTestCase
db, getDbUrl, setDB, setDbUrl
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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
 

Field Detail

log

private static org.apache.log4j.Logger log
log4j logger


tx

private org.ozoneDB.ExternalTransaction tx

group

private Group group
Constructor Detail

TxTest

public TxTest(java.lang.String name)
Method Detail

addSuite

public static void addSuite(junit.framework.TestSuite suite)

suite

public static junit.framework.Test suite()

setUp

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

testMultipleThreadsPerTransaction

public void testMultipleThreadsPerTransaction()
                                       throws org.ozoneDB.TransactionException,
                                              java.io.IOException,
                                              java.lang.InterruptedException
Throws:
org.ozoneDB.TransactionException
java.io.IOException
java.lang.InterruptedException

testExternalCommit

public void testExternalCommit()
                        throws org.ozoneDB.TransactionException,
                               java.io.IOException
Throws:
org.ozoneDB.TransactionException
java.io.IOException

testExternalAbortAfterCrash

public void testExternalAbortAfterCrash()
                                 throws org.ozoneDB.TransactionException,
                                        java.io.IOException
Throws:
org.ozoneDB.TransactionException
java.io.IOException

testExternalAbort

public void testExternalAbort()
                       throws org.ozoneDB.TransactionException,
                              java.io.IOException
Throws:
org.ozoneDB.TransactionException
java.io.IOException

print

protected static void print(Group g)
                     throws java.lang.Exception
Throws:
java.lang.Exception

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.