Class SaveAuditRecordsTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.directpersistence.audit.impl.SaveAuditRecordsTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
SaveAuditRecordsJaloTest,SaveAuditRecordsSLDTest
public class SaveAuditRecordsTest extends ServicelayerBaseTest
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelServicemodelServiceprotected ReadAuditGatewayreadAuditGatewayprotected WriteAuditGatewaywriteAuditGateway-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description SaveAuditRecordsTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Field Detail
-
modelService
protected ModelService modelService
-
readAuditGateway
protected ReadAuditGateway readAuditGateway
-
writeAuditGateway
protected WriteAuditGateway writeAuditGateway
-
-
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)
-
-