Code example for AbstractTransactionalTestNGSpringContextTests

0
 * 
 */ 
@ContextConfiguration(locations = {"classpath:/org/jtalks/jcommune/model/entity/applicationContext-dao.xml"}) 
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true) 
@Transactional 
public class PropertyHibernateDaoTest  extends AbstractTransactionalTestNGSpringContextTests { 
    private static final String PROPERTY_NAME = "property_name"; 
    private Property property = new Property(PROPERTY_NAME, "value"); 
    @Autowired 
    private SessionFactory sessionFactory; 
    @Autowired 
    private PropertyDao propertyDao; 
    private Session session; 
     
    @BeforeMethod 
    public void setUp() { 
        session = sessionFactory.getCurrentSession(); 
    } 
     
    /*===== Common methods =====*/