Code example for AbstractTransactionalTestNGSpringContextTests

0
 */ 
 
@ContextConfiguration(locations = {"classpath:/org/jtalks/jcommune/model/entity/applicationContext-dao.xml"}) 
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true) 
@Transactional 
public class SimplePageHibernateDaoTest extends AbstractTransactionalTestNGSpringContextTests { 
    @Autowired 
    private SessionFactory sessionFactory; 
    @Autowired 
    private SimplePageDao dao; 
    private Session session; 
 
 
    @BeforeMethod 
    public void setUp() throws Exception { 
        session = sessionFactory.getCurrentSession(); 
    } 
 
    /*===== Common methods =====*/ 
 
Contextual code suggestions in your IDE  Get Codota for Java