use of com.autentia.tnt.dao.hibernate.DepartmentDAO in project TNTConcept by autentia.
the class SpringUtilsForTesting method createDepartmentInContext.
private static Department createDepartmentInContext() {
final Department department = new Department();
department.setName("Test Department");
department.setDescription("Test Department");
final DepartmentDAO departmentDao = (DepartmentDAO) appCtx.getBean("daoDepartment");
departmentDao.insert(department);
return department;
}
Aggregations