Code example for AbstractTransactionalTestNGSpringContextTests

Methods: assertEquals

0
        componentDao.saveOrUpdate(component); 
        session.flush(); 
        session.evict(component); 
        Component result = (Component) session.get(Component.class, component.getId()); 
 
        assertEquals(result.getUuid(), newUuid); 
    } 
 
    @Test(expectedExceptions = javax.validation.ValidationException.class) 
    public void testUpdateUuidNotNullViolation() { 
        Component component = PersistedObjectsFactory.getDefaultComponent(); 
        session.save(component); 
        component.setUuid(null); 
 
        componentDao.saveOrUpdate(component); 
        session.flush(); 
    } 
 
    @Test 
    public void testOrphanRemoving() {