Code example for AbstractTransactionalTestNGSpringContextTests

0
 * @author Elena Lepaeva 
 */ 
@ContextConfiguration(locations = {"classpath:/org/jtalks/jcommune/model/entity/applicationContext-dao.xml"}) 
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true) 
@Transactional 
public class ForumStatisticsHibernateDaoTest extends AbstractTransactionalTestNGSpringContextTests { 
 
    @Autowired 
    private ForumStatisticsDao dao; 
    @Autowired 
    private SessionFactory sessionFactory; 
    private Session session; 
 
    @BeforeMethod 
    public void setUp() throws Exception { 
        session = sessionFactory.getCurrentSession(); 
        PersistedObjectsFactory.setSession(session); 
    } 
 
    @Test 
Connect your IDE to all the code out there  Get Codota for Java