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 ResourcePrivilegeDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
 
    @Autowired 
    private ResourcePrivilegeDAO resourcePrivilegeDAO; 
 
    @Test 
    public void touchAdd() { 
        resourcePrivilegeDAO.add(new ResourcePrivilegeEntity()); 
    } 
 
    @Test 
    public void touchFindById() { 
        resourcePrivilegeDAO.findById(""); 
    }