org.apache.ojb.broker
Class PBRollbackTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.ojb.broker.PBRollbackTest
All Implemented Interfaces:
junit.framework.Test

public class PBRollbackTest
extends junit.framework.TestCase

Tests rollback and (simple) commit behaviour.

Author:
Armin Waibel

Nested Class Summary
(package private)  class PBRollbackTest.Dummy
           
 
Constructor Summary
PBRollbackTest(java.lang.String s)
           
 
Method Summary
protected  java.util.ArrayList getNewProjects(int count)
           
static void main(java.lang.String[] args)
           
protected  Project newProject()
           
protected  void setUp()
           
protected  void storeObjects(PersistenceBroker broker, java.util.Collection objects)
           
protected  void tearDown()
           
 void testEmptyTxDemarcation_1()
           
 void testEmptyTxDemarcation_2()
           
 void testRollbackCausedByNotExistingObject()
           
 void testRollbackCausedBySQLException()
           
 void testUserCommit()
           
 void testUserCommitClearCache()
           
 void testUserRollback()
           
 void testUserRollbackClearCache()
           
 
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

PBRollbackTest

public PBRollbackTest(java.lang.String s)
Method Detail

testEmptyTxDemarcation_1

public void testEmptyTxDemarcation_1()

testEmptyTxDemarcation_2

public void testEmptyTxDemarcation_2()

testUserCommitClearCache

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

testUserCommit

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

testUserRollbackClearCache

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

testUserRollback

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

testRollbackCausedByNotExistingObject

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

testRollbackCausedBySQLException

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

storeObjects

protected void storeObjects(PersistenceBroker broker,
                            java.util.Collection objects)

getNewProjects

protected java.util.ArrayList getNewProjects(int count)

newProject

protected Project newProject()

setUp

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

tearDown

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

main

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


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14