Class SaveAuditRecordsTest

    • Constructor Detail

      • SaveAuditRecordsTest

        public SaveAuditRecordsTest()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • tearDown

        public void tearDown()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldRemoveAuditRecordsForTypeAndPk

        public void shouldRemoveAuditRecordsForTypeAndPk()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldNotCreateLogsForRollback

        public void shouldNotCreateLogsForRollback()
      • shouldCreateTwoRecordsOneInNoTransactionOneInTransactionScope

        public void shouldCreateTwoRecordsOneInNoTransactionOneInTransactionScope()
                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreatedAuditForCreation

        public void shouldCreatedAuditForCreation()
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldNotAuditItemWhichIsNotConfigured

        public void shouldNotAuditItemWhichIsNotConfigured()
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldOnlyAuditItemsThatAreConfigured

        public void shouldOnlyAuditItemsThatAreConfigured()
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreateAuditForCreationAndModification

        public void shouldCreateAuditForCreationAndModification()
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreateAuditForCreationModificationAndDeletion

        public void shouldCreateAuditForCreationModificationAndDeletion()
                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreateOneAuditRecordInTransaction

        public void shouldCreateOneAuditRecordInTransaction()
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreateTwoRecordWithAndWithoutTransactions

        public void shouldCreateTwoRecordWithAndWithoutTransactions()
                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreateTwoRecordWithAndWithoutTransactions2

        public void shouldCreateTwoRecordWithAndWithoutTransactions2()
                                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldNotCreateRecordForNestedTransactions

        public void shouldNotCreateRecordForNestedTransactions()
                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldRemoveRecordsFromCacheAndNotCreateAuditRecord

        public void shouldRemoveRecordsFromCacheAndNotCreateAuditRecord()
                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreateAuditForLink

        public void shouldCreateAuditForLink()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldCreateAuditForLinkWithRemoveAllLinks

        public void shouldCreateAuditForLinkWithRemoveAllLinks()
                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • shouldSetValuesBeforeFromStartOfTransaction

        public void shouldSetValuesBeforeFromStartOfTransaction()
                                                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • enableAuditingForTypes

        protected void enableAuditingForTypes​(java.lang.String... types)
      • switchPersistenceLegacyMode

        protected void switchPersistenceLegacyMode​(boolean value)