Class TransactionRunListener
- java.lang.Object
-
- org.junit.runner.notification.RunListener
-
- de.hybris.platform.testframework.runlistener.TransactionRunListener
-
public class TransactionRunListener extends org.junit.runner.notification.RunListenerListener which will start a transaction before each test and will rollback it when test is finished. Transactional support will only be enabled if the test class or method is annotated withTransactional.- Since:
- 3.0-u3
- See Also:
Transactional
-
-
Constructor Summary
Constructors Constructor Description TransactionRunListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestFinished(org.junit.runner.Description description)voidtestStarted(org.junit.runner.Description description)
-
-
-
Method Detail
-
testStarted
public void testStarted(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testStartedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
testFinished
public void testFinished(org.junit.runner.Description description) throws java.lang.Exception- Overrides:
testFinishedin classorg.junit.runner.notification.RunListener- Throws:
java.lang.Exception
-
-