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 RoleDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
 
    @Autowired 
    private RoleDAO roleDAO; 
 
    @Test 
    public void touchAdd() { 
      RoleEntity roleEntity = new RoleEntity(); 
      roleEntity.setRoleId(new RoleEmbeddableId("","")); 
      roleDAO.add(roleEntity); 
    } 
 
    @Test 
    public void touchAddGroupToRole() { 
      RoleEntity roleEntity = new RoleEntity(); 
Contextual code suggestions in your IDE  Get Codota for Java