Code example for AbstractTransactionalTestNGSpringContextTests

Methods: assertFalse

0
        assertTrue(dao.isExist(simplePage.getId())); 
    } 
 
    @Test 
    public void testIsNotExist() { 
        assertFalse(dao.isExist(-567890L)); 
    } 
 
    /* SimplePageHibernateDao specific methods */ 
 
    @Test 
    public void testCreatePage() { 
        SimplePage simplePage = ObjectsFactory.getDefaultSimplePage(); 
        session.save(simplePage); 
 
        dao.createPage(simplePage); 
        session.evict(simplePage); 
        SimplePage result = (SimplePage) session.get(SimplePage.class, simplePage.getId()); 
 
        assertNotNull(result);