Code example for AbstractTransactionalTestNGSpringContextTests

0
 * 
 * @author ekta.agarwal 
 */ 
@ContextConfiguration(locations = {"classpath:applicationContext-test.xml","classpath:dozer-application-context-test.xml"}) 
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true) 
public class ReportSubscriptionDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
    @Autowired 
    private ReportSubscriptionDao reportSubscriptionDao; 
 
    @Test 
    public void touchSave() { 
        reportSubscriptionDao.save(new ReportSubscriptionEntity()); 
    } 
 
    @Test 
    public void touchFindByReportInfoId() { 
        reportSubscriptionDao.findById("1"); 
    } 
}