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 ResourceUserDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
    @Autowired 
    private ResourceUserDAO resourceUserDAO; 
 
    @Test 
    public void touchAdd() { 
        ResourceUserEntity resourceUserEntity = new ResourceUserEntity(); 
        resourceUserEntity.setId(new ResourceUserEmbeddableId("", "", "")); 
        resourceUserDAO.add(resourceUserEntity); 
    } 
 
    @Test 
    public void touchFindAllResourceForUsers() { 
        resourceUserDAO.findAllResourceForUsers(""); 
    }