Class TransactionTest

All Implemented Interfaces:
JaloSessionHolder
Direct Known Subclasses:
DefaultB2BRegistrationFacadeUnitTest

@IntegrationTest public class TransactionTest extends HybrisJUnit4Test
  • Constructor Details

    • TransactionTest

      public TransactionTest()
  • Method Details

    • tearDown

      public void tearDown()
    • testCommitWithActivateFalse

      public void testCommitWithActivateFalse() throws Exception
      Throws:
      Exception
    • testIneffectiveRollbackWithActivateFalse

      public void testIneffectiveRollbackWithActivateFalse() throws Exception
      Throws:
      Exception
    • shouldThrowExceptionByNullConnectionInTransactionBegin

      public void shouldThrowExceptionByNullConnectionInTransactionBegin() throws Exception
      Throws:
      Exception
    • shouldThrowSQLExceptionAllTimeByGettingConnectionInTransactionBegin

      public void shouldThrowSQLExceptionAllTimeByGettingConnectionInTransactionBegin()
    • shouldThrowSQLExceptionThreeTimesByGettingConnectionInTransactionBegin

      public void shouldThrowSQLExceptionThreeTimesByGettingConnectionInTransactionBegin() throws Exception
      Throws:
      Exception
    • shouldGetConnectionInTransactionBeginTwoTimeForWrongPropertyValue

      public void shouldGetConnectionInTransactionBeginTwoTimeForWrongPropertyValue()
    • shouldGetConnectionOneTimeWithNegativePropertyValue

      public void shouldGetConnectionOneTimeWithNegativePropertyValue()
    • shouldGetConnectionOneTimeWithPropertyValueSetToZero

      public void shouldGetConnectionOneTimeWithPropertyValueSetToZero()
    • shouldThrowSQLExceptionByPrepareErrorQueryConnectionInTransactionBegin

      public void shouldThrowSQLExceptionByPrepareErrorQueryConnectionInTransactionBegin()
    • shouldThrowSQLExceptionByGettingConnectionInTransactionBegin

      public void shouldThrowSQLExceptionByGettingConnectionInTransactionBegin() throws Exception
      Throws:
      Exception
    • testItemAccessDuringCommit_PLA10839

      public void testItemAccessDuringCommit_PLA10839() throws Exception
      Throws:
      Exception
    • testItemUpdateDuringCommit_PLA10839

      public void testItemUpdateDuringCommit_PLA10839() throws Exception
      Throws:
      Exception
    • shouldExecuteLogicOnCommit

      public void shouldExecuteLogicOnCommit() throws Exception
      Throws:
      Exception
    • shouldExecuteLogicOnRollback

      public void shouldExecuteLogicOnRollback() throws Exception
      Throws:
      Exception
    • shouldExecuteLogicOnCommit_NestedTX

      public void shouldExecuteLogicOnCommit_NestedTX() throws Exception
      Throws:
      Exception
    • shouldExecuteLogicOnRollback_NestedTX

      public void shouldExecuteLogicOnRollback_NestedTX() throws Exception
      Throws:
      Exception
    • testErrorInNestedCommit

      public void testErrorInNestedCommit()
    • testErrorInNestedCommitUsingTxBody

      public void testErrorInNestedCommitUsingTxBody()
    • testRollbackOnCommitError

      public void testRollbackOnCommitError() throws SQLException
      Throws:
      SQLException
    • testConnectionNoClosedAfterRollback

      public void testConnectionNoClosedAfterRollback() throws SQLException
      Throws:
      SQLException
    • testErrorInCommit

      public void testErrorInCommit() throws SQLException
      Throws:
      SQLException
    • testLocking

      public void testLocking() throws Exception
      Throws:
      Exception
    • testGetAllAttributes

      public void testGetAllAttributes() throws Exception
      Throws:
      Exception
    • testInTXModification1

      public void testInTXModification1() throws Exception
      Throws:
      Exception
    • testInTXModification2

      public void testInTXModification2() throws Exception
      Throws:
      Exception
    • testInTXRemoval

      public void testInTXRemoval() throws Exception
      Throws:
      Exception
    • testGlobalCacheInvalidationMessageSent

      public void testGlobalCacheInvalidationMessageSent() throws Exception
      Throws:
      Exception
    • testJaloCacheInvalidation

      public void testJaloCacheInvalidation() throws Exception
      Throws:
      Exception
    • testCacheInvalidationWithUserTransaction

      public void testCacheInvalidationWithUserTransaction() throws Exception
      Throws:
      Exception
    • testIsolation

      public void testIsolation() throws ConsistencyCheckException
      Throws:
      ConsistencyCheckException
    • testDeadlocks

      public void testDeadlocks() throws Exception
      Throws:
      Exception
    • testNestedTransactionCommit

      public void testNestedTransactionCommit() throws ConsistencyCheckException
      Throws:
      ConsistencyCheckException
    • testNestedTransactionRollback

      public void testNestedTransactionRollback() throws ConsistencyCheckException
      Throws:
      ConsistencyCheckException
    • testNestedTransaction

      public void testNestedTransaction() throws ConsistencyCheckException
      Throws:
      ConsistencyCheckException
    • testNestedTransactionExecute

      public void testNestedTransactionExecute() throws Exception
      Throws:
      Exception
    • testNestedTransactionWithCreate

      public void testNestedTransactionWithCreate() throws Exception
      Throws:
      Exception
    • testNestedTAError

      public void testNestedTAError() throws Exception
      Throws:
      Exception
    • testPermittedExceptions

      public void testPermittedExceptions() throws Exception
      Throws:
      Exception
    • testToException

      public void testToException()
    • testManualRollbackNoException

      public void testManualRollbackNoException() throws ConsistencyCheckException
      Throws:
      ConsistencyCheckException
    • testWrongOpenTxCountAfterErrorDuringRollback

      public void testWrongOpenTxCountAfterErrorDuringRollback()
    • testItemNotAliveAfterTransactionRollback

      public void testItemNotAliveAfterTransactionRollback()