Code example for AbstractTransactionalTestNGSpringContextTests

0
 * 
 * @author vitaly.yakunin 
 */ 
@ContextConfiguration(locations = {"classpath:applicationContext-test.xml","classpath:dozer-application-context-test.xml"}) 
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true) 
public class SupervisorDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
    @Autowired 
    private SupervisorDAO supervisorDao; 
 
    @Test 
    public void touchAdd() { 
        supervisorDao.add(new SupervisorEntity()); 
    } 
 
    @Test 
    public void touchFindByExample() { 
        supervisorDao.findByExample(new SupervisorEntity()); 
    } 
 
    @Test 
Experience pair programming with AI  Get Codota for Java