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:
  • Field Summary

    Fields inherited from class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests

    jdbcTemplate

    Fields inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

    applicationContext, logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class org.springframework.test.context.testng.AbstractTransactionalTestNGSpringContextTests

    countRowsInTable, countRowsInTableWhere, deleteFromTables, deleteFromTableWhere, dropTables, executeSqlScript, setDataSource, setSqlScriptEncoding

    Methods inherited from class org.springframework.test.context.testng.AbstractTestNGSpringContextTests

    run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestNGTransactionalSiteIntegrationSetup

      public TestNGTransactionalSiteIntegrationSetup()