Code example for AbstractTransactionalTestNGSpringContextTests

Methods: assertEquals, assertNotNull

0
    public void testGetByName() { 
        session.save(property); 
 
        Property result = propertyDao.getByName(PROPERTY_NAME); 
         
        assertNotNull(result, "Property is not found by name."); 
        assertEquals(result.getId(), property.getId(), "Property not found"); 
    } 
}