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 ResourceRoleDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
    @Autowired 
    private ResourceRoleDAO resourceRoleDAO; 
 
    @Test 
    public void touchAdd() { 
       ResourceRoleEntity entity = new ResourceRoleEntity(); 
       entity.setId(new ResourceRoleEmbeddableId("","","","")); 
       resourceRoleDAO.add(entity); 
    } 
 
    @Test 
    public void touchFindAllResourceRoles() { 
       resourceRoleDAO.findAllResourceRoles(); 
    } 
Connect your IDE to all the code out there  Get Codota for Java