Class TransactionAwareAuditTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.persistence.audit.TransactionAwareAuditTest
-
- All Implemented Interfaces:
AuditableTest
,JaloSessionHolder
- Direct Known Subclasses:
TransactionAwareAuditJaloTest
,TransactionAwareAuditSLDTest
public class TransactionAwareAuditTest extends ServicelayerBaseTest implements AuditableTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description TransactionAwareAuditTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
restoreConfiguration()
void
shouldNotSaveItemAndAuditWithExplicitNestedTransactionAfterExceptionIsThrown()
void
shouldNotSaveItemAndAuditWithExplicitNestedTransactionAfterExceptionIsThrown2()
void
shouldNotSaveItemAndAuditWithExplicitTransaction()
void
shouldNotStoreItemAndAuditWithSpringTransaction()
void
shouldSaveItemAndAuditWithExcplicitTransaction()
void
shouldSaveItemAndAuditWithExplicitNestedTransaction()
void
testInternalWithExplicitNestedTransaction()
void
testInternalWithExplicitTransaction()
void
testInternalWithExplicitTransactionWithRollbackAndCommit()
protected void
warmUp()
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.audit.AuditableTest
assumeAuditEnabled
-
-
-
-
Method Detail
-
restoreConfiguration
public void restoreConfiguration()
-
warmUp
protected void warmUp()
-
testInternalWithExplicitTransactionWithRollbackAndCommit
public void testInternalWithExplicitTransactionWithRollbackAndCommit() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInternalWithExplicitTransaction
public void testInternalWithExplicitTransaction() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInternalWithExplicitNestedTransaction
public void testInternalWithExplicitNestedTransaction() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldNotSaveItemAndAuditWithExplicitTransaction
public void shouldNotSaveItemAndAuditWithExplicitTransaction() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSaveItemAndAuditWithExcplicitTransaction
public void shouldSaveItemAndAuditWithExcplicitTransaction() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldSaveItemAndAuditWithExplicitNestedTransaction
public void shouldSaveItemAndAuditWithExplicitNestedTransaction() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldNotSaveItemAndAuditWithExplicitNestedTransactionAfterExceptionIsThrown
public void shouldNotSaveItemAndAuditWithExplicitNestedTransactionAfterExceptionIsThrown() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldNotSaveItemAndAuditWithExplicitNestedTransactionAfterExceptionIsThrown2
public void shouldNotSaveItemAndAuditWithExplicitNestedTransactionAfterExceptionIsThrown2() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldNotStoreItemAndAuditWithSpringTransaction
public void shouldNotStoreItemAndAuditWithSpringTransaction()
-
-