Package org.broadleafcommerce.test
Class TestNGTransactionalSiteIntegrationSetup
java.lang.Object
org.springframework.test.context.testng.AbstractTestNGSpringContextTests
org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
org.broadleafcommerce.test.TestNGTransactionalSiteIntegrationSetup
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.testng.IHookable,org.testng.ITestNGListener
@BroadleafSiteIntegrationTest
public abstract class TestNGTransactionalSiteIntegrationSetup
extends org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
The @Transactional version of the TestNGSiteIntegrationSetup. All @Test methods contained
within any subclasses of this are run within the TransactionUtils.DEFAULT_TRANSACTION_MANAGER transaction manager.
However, all test-level transactions default to @Rollback(true).
You can get finer-grained control over which classes are @Transactional and which ones aren't by instead subclassing
TestNGSiteIntegrationSetup instead and annotating individual @Test methods.
- Author:
- Phillip Verheyden (phillipuniverse)
- See Also:
-
AbstractTransactionalTestNGSpringContextTestsTransactionalTestExecutionListenerBroadleafSiteIntegrationTest
-
Field Summary
Fields inherited from class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
jdbcTemplateFields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
applicationContext, logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests
countRowsInTable, countRowsInTableWhere, deleteFromTables, deleteFromTableWhere, dropTables, executeSqlScript, setDataSource, setSqlScriptEncodingMethods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
-
Constructor Details
-
TestNGTransactionalSiteIntegrationSetup
public TestNGTransactionalSiteIntegrationSetup()
-