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 GroupDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
    @Autowired 
    private GroupDAO groupDAO; 
 
    @Test 
    public void touchAdd() { 
        groupDAO.add(new GroupEntity()); 
    } 
 
    @Test 
    public void touchFindAllGroups() { 
        groupDAO.findAllGroups(); 
    } 
 
    @Test 
Experience pair programming with AI  Get Codota for Java