Package org.fcrepo.kernel.impl
Class TransactionImplTest
- java.lang.Object
-
- org.fcrepo.kernel.impl.TransactionImplTest
-
public class TransactionImplTest extends Object
TransactionTest class.
- Author:
- mohideen
-
-
Constructor Summary
Constructors Constructor Description TransactionImplTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcommitShouldWaitTillAllOperationsComplete()voidoperationsShouldFailWhenTxNotOpen()voidsetUp()voidshouldRollbackAllWhenContainmentThrowsException()voidshouldRollbackAllWhenEventsThrowsException()voidshouldRollbackAllWhenStorageThrowsException()voidtestCommit()voidtestCommitAlreadyCommittedTx()voidtestCommitExpired()voidtestCommitIfShortLived()voidtestCommitIfShortLivedOnNonShortLived()voidtestCommitRolledbackTx()voidtestDefaultShortLived()voidtestEnsureRollbackOnFailedCommit()voidtestExpire()voidtestGetId()voidtestNewTransactionNotExpired()voidtestNoEventSuppression()voidtestRefresh()voidtestRefreshOnExpired()voidtestRollback()voidtestRollbackAlreadyRolledbackTx()voidtestRollbackCommited()voidtestSetShortLived()voidtestSuppressEvents()voidtestUpdateExpiry()voidtestUpdateExpiryOnExpired()
-
-
-
Constructor Detail
-
TransactionImplTest
public TransactionImplTest()
-
-
Method Detail
-
setUp
public void setUp()
-
testGetId
public void testGetId()
-
testDefaultShortLived
public void testDefaultShortLived()
-
testSetShortLived
public void testSetShortLived()
-
testCommit
public void testCommit() throws Exception
- Throws:
Exception
-
testCommitIfShortLived
public void testCommitIfShortLived() throws Exception
- Throws:
Exception
-
testCommitIfShortLivedOnNonShortLived
public void testCommitIfShortLivedOnNonShortLived() throws Exception
- Throws:
Exception
-
testCommitExpired
public void testCommitExpired() throws Exception
- Throws:
Exception
-
testCommitRolledbackTx
public void testCommitRolledbackTx() throws Exception
- Throws:
Exception
-
testEnsureRollbackOnFailedCommit
public void testEnsureRollbackOnFailedCommit() throws Exception
- Throws:
Exception
-
testCommitAlreadyCommittedTx
public void testCommitAlreadyCommittedTx() throws Exception
- Throws:
Exception
-
testRollback
public void testRollback() throws Exception
- Throws:
Exception
-
shouldRollbackAllWhenStorageThrowsException
public void shouldRollbackAllWhenStorageThrowsException() throws Exception
- Throws:
Exception
-
shouldRollbackAllWhenContainmentThrowsException
public void shouldRollbackAllWhenContainmentThrowsException() throws Exception
- Throws:
Exception
-
shouldRollbackAllWhenEventsThrowsException
public void shouldRollbackAllWhenEventsThrowsException() throws Exception
- Throws:
Exception
-
testRollbackCommited
public void testRollbackCommited() throws Exception
- Throws:
Exception
-
testRollbackAlreadyRolledbackTx
public void testRollbackAlreadyRolledbackTx() throws Exception
- Throws:
Exception
-
testExpire
public void testExpire()
-
testUpdateExpiry
public void testUpdateExpiry()
-
testUpdateExpiryOnExpired
public void testUpdateExpiryOnExpired()
-
testRefresh
public void testRefresh()
-
testRefreshOnExpired
public void testRefreshOnExpired()
-
testNewTransactionNotExpired
public void testNewTransactionNotExpired()
-
operationsShouldFailWhenTxNotOpen
public void operationsShouldFailWhenTxNotOpen()
-
commitShouldWaitTillAllOperationsComplete
public void commitShouldWaitTillAllOperationsComplete()
-
testSuppressEvents
public void testSuppressEvents()
-
testNoEventSuppression
public void testNoEventSuppression()
-
-