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 UserGroupDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
 
    @Autowired 
    private UserGroupDAO userGroupDAO; 
 
    @Test 
    public void touchAdd() { 
        userGroupDAO.add(new UserGroupEntity()); 
    } 
 
    @Test 
    public void touchFindById() { 
        userGroupDAO.findById(""); 
    }