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 UserNoteDAOTouchTest extends AbstractTransactionalTestNGSpringContextTests { 
 
    @Autowired 
    private UserNoteDAO userNoteDAO; 
 
    @Test 
    public void touchAttachClean() { 
      UserNoteEntity usernote = new UserNoteEntity(); 
      userNoteDAO.persist(usernote); 
      userNoteDAO.attachClean(usernote); 
    } 
 
    @Test 
    public void touchAttachDirty() { 
      UserNoteEntity usernote = new UserNoteEntity();