org.alfresco.util.transaction
Class SpringAwareUserTransactionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.util.transaction.SpringAwareUserTransactionTest
All Implemented Interfaces:
junit.framework.Test

public class SpringAwareUserTransactionTest
extends junit.framework.TestCase

See Also:
SpringAwareUserTransaction

Constructor Summary
SpringAwareUserTransactionTest()
           
 
Method Summary
protected  void setUp()
           
 void testMismatchedBeginCommit()
           
 void testNoBeginCommit()
           
 void testNoTxnStatus()
           
 void testPostRollbackCommitDetection()
           
 void testPostSetRollbackOnlyCommitDetection()
           
 void testSetUp()
           
 void testSimpleTxnWithCommit()
           
 void testSimpleTxnWithRollback()
           
 void xtestLeakedTransactionLogging()
          Test for leaked transactions (no guarantee it will succeed due to reliance on garbage collector), so disabled by default.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpringAwareUserTransactionTest

public SpringAwareUserTransactionTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testSetUp

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

testNoTxnStatus

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

testSimpleTxnWithCommit

public void testSimpleTxnWithCommit()
                             throws java.lang.Throwable
Throws:
java.lang.Throwable

testSimpleTxnWithRollback

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

testNoBeginCommit

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

testPostRollbackCommitDetection

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

testPostSetRollbackOnlyCommitDetection

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

testMismatchedBeginCommit

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

xtestLeakedTransactionLogging

public void xtestLeakedTransactionLogging()
                                   throws java.lang.Exception
Test for leaked transactions (no guarantee it will succeed due to reliance on garbage collector), so disabled by default. Also, if it succeeds, transaction call stack tracing will be enabled potentially hitting the performance of all subsequent tests.

Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.