qflib 0.98.0

de.qfs.lib.transaction
Class IntTests

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--de.qfs.lib.transaction.IntTests
All Implemented Interfaces:
junit.framework.Test

public class IntTests
extends junit.framework.TestCase

Integration tests for the transaction package.

Since:
0.97.0
Version:
$Revision: 1.6 $
Author:
Gregor Schmid

Constructor Summary
IntTests(java.lang.String name)
          Create a new IntTests.
 
Method Summary
protected  void setUp()
          Set up the test fixture.
static junit.framework.Test suite()
          Get the suite of tests.
 void testCommit()
          Test setting some States and committing.
 void testExceptions()
          Test exceptions during rollback.
 void testRollback()
          Test setting some States and rolling back.
 void testThreads()
          Test creating Transactions from different Threads.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, name, run, run, runBare, runTest, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntTests

public IntTests(java.lang.String name)
Create a new IntTests.
Parameters:
name - The name of the test.
Method Detail

setUp

protected void setUp()
Set up the test fixture.
Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Get the suite of tests.
Returns:
The tests.

testCommit

public void testCommit()
Test setting some States and committing.

testRollback

public void testRollback()
Test setting some States and rolling back.

testExceptions

public void testExceptions()
Test exceptions during rollback.

testThreads

public void testThreads()
Test creating Transactions from different Threads.

qflib 0.98.0