Class SaveAuditRecordsTest

All Implemented Interfaces:
JaloSessionHolder
Direct Known Subclasses:
SaveAuditRecordsJaloTest, SaveAuditRecordsSLDTest

public class SaveAuditRecordsTest extends ServicelayerBaseTest
  • Field Details

  • Constructor Details

    • SaveAuditRecordsTest

      public SaveAuditRecordsTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • tearDown

      public void tearDown() throws Exception
      Throws:
      Exception
    • shouldRemoveAuditRecordsForTypeAndPk

      public void shouldRemoveAuditRecordsForTypeAndPk() throws Exception
      Throws:
      Exception
    • shouldNotCreateLogsForRollback

      public void shouldNotCreateLogsForRollback()
    • shouldCreateTwoRecordsOneInNoTransactionOneInTransactionScope

      public void shouldCreateTwoRecordsOneInNoTransactionOneInTransactionScope() throws Exception
      Throws:
      Exception
    • shouldCreatedAuditForCreation

      public void shouldCreatedAuditForCreation() throws Exception
      Throws:
      Exception
    • shouldNotAuditItemWhichIsNotConfigured

      public void shouldNotAuditItemWhichIsNotConfigured() throws Exception
      Throws:
      Exception
    • shouldOnlyAuditItemsThatAreConfigured

      public void shouldOnlyAuditItemsThatAreConfigured() throws Exception
      Throws:
      Exception
    • shouldCreateAuditForCreationAndModification

      public void shouldCreateAuditForCreationAndModification() throws Exception
      Throws:
      Exception
    • shouldCreateAuditForCreationModificationAndDeletion

      public void shouldCreateAuditForCreationModificationAndDeletion() throws Exception
      Throws:
      Exception
    • shouldCreateOneAuditRecordInTransaction

      public void shouldCreateOneAuditRecordInTransaction() throws Exception
      Throws:
      Exception
    • shouldCreateTwoRecordWithAndWithoutTransactions

      public void shouldCreateTwoRecordWithAndWithoutTransactions() throws Exception
      Throws:
      Exception
    • shouldCreateTwoRecordWithAndWithoutTransactions2

      public void shouldCreateTwoRecordWithAndWithoutTransactions2() throws Exception
      Throws:
      Exception
    • shouldNotCreateRecordForNestedTransactions

      public void shouldNotCreateRecordForNestedTransactions() throws Exception
      Throws:
      Exception
    • shouldRemoveRecordsFromCacheAndNotCreateAuditRecord

      public void shouldRemoveRecordsFromCacheAndNotCreateAuditRecord() throws Exception
      Throws:
      Exception
    • shouldCreateAuditForLink

      public void shouldCreateAuditForLink() throws Exception
      Throws:
      Exception
    • shouldCreateAuditForLinkWithRemoveAllLinks

      public void shouldCreateAuditForLinkWithRemoveAllLinks() throws Exception
      Throws:
      Exception
    • shouldSetValuesBeforeFromStartOfTransaction

      public void shouldSetValuesBeforeFromStartOfTransaction() throws Exception
      Throws:
      Exception
    • enableAuditingForTypes

      protected void enableAuditingForTypes(String... types)
    • switchPersistenceLegacyMode

      protected void switchPersistenceLegacyMode(boolean value)