Class BaseTransactionalTestRuleTest
Object
com.liferay.portal.kernel.test.rule.BaseTransactionalTestRuleTest
- Author:
- Shuyang Zhou
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ThreadLocal<Deque<com.liferay.portal.kernel.transaction.TransactionConfig>>
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
transactionConfigThreadLocal
protected static final ThreadLocal<Deque<com.liferay.portal.kernel.transaction.TransactionConfig>> transactionConfigThreadLocal
-
-
Constructor Details
-
BaseTransactionalTestRuleTest
public BaseTransactionalTestRuleTest()
-
-
Method Details
-
setUpClass1
- Throws:
ReflectiveOperationException
-
setUpClass2
- Throws:
ReflectiveOperationException
-
setUpClass3
@Transactional(propagation=REQUIRES_NEW) public static void setUpClass3() throws ReflectiveOperationException- Throws:
ReflectiveOperationException
-
tearDownClass1
- Throws:
ReflectiveOperationException
-
tearDownClass2
- Throws:
ReflectiveOperationException
-
tearDownClass3
@Transactional(isolation=REPEATABLE_READ, readOnly=true, rollbackFor=java.lang.Exception.class) public static void tearDownClass3() throws ReflectiveOperationException- Throws:
ReflectiveOperationException
-
setUp1
- Throws:
ReflectiveOperationException
-
setUp2
- Throws:
ReflectiveOperationException
-
setUp3
- Throws:
ReflectiveOperationException
-
tearDown1
- Throws:
ReflectiveOperationException
-
tearDown2
- Throws:
ReflectiveOperationException
-
tearDown3
@Transactional(noRollbackFor=java.lang.Exception.class, timeout=10) public void tearDown3() throws ReflectiveOperationException- Throws:
ReflectiveOperationException
-
test1
- Throws:
ReflectiveOperationException
-
test2
- Throws:
ReflectiveOperationException
-
test3
@Transactional(noRollbackForClassName="RuntimeException", propagation=SUPPORTS) public void test3() throws ReflectiveOperationException- Throws:
ReflectiveOperationException
-
assertTransactionConfig
- Throws:
ReflectiveOperationException
-