org.alfresco.repo.transaction
Class AlfrescoTransactionSupportTest

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

public class AlfrescoTransactionSupportTest
extends junit.framework.TestCase

Tests integration between our UserTransaction implementation and our TransactionManager.

See Also:
org.alfresco.repo.transaction.AlfrescoTransactionManager, SpringAwareUserTransaction

Constructor Summary
AlfrescoTransactionSupportTest()
           
 
Method Summary
 void setUp()
           
 void testListener()
           
 void testPreCommitListenerBinding()
          Tests the condition whereby a listener can cause failure by attempting to bind itself to the transaction in the pre-commit callback.
 void testReadWriteStateRetrieval()
           
 void testResourceHelper()
           
 void testTransactionId()
           
 
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

AlfrescoTransactionSupportTest

public AlfrescoTransactionSupportTest()
Method Detail

setUp

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

testTransactionId

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

testListener

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

testPreCommitListenerBinding

public void testPreCommitListenerBinding()
                                  throws java.lang.Exception
Tests the condition whereby a listener can cause failure by attempting to bind itself to the transaction in the pre-commit callback. This is caused by the listener set being modified during calls to the listeners.

Throws:
java.lang.Exception

testReadWriteStateRetrieval

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

testResourceHelper

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


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