chId = (int) channel.getId();
chGrpId = (int) grp1.getId();
}
catch (HibernateException he) {
logger.warn("trying to rollback the transaction");
if (tx != null) tx.rollback();
throw he;
}
assertTrue("No valid channel created.", chId >= 0);
assertTrue("No valid channel group created.", chGrpId >= 0);
// -- try to retrieve channel and the assigned category