Methods Summary |
---|
protected void | addTestData()
addTestSkills();
addTestEmployees();
|
protected void | addTestEmployees()
try {
for (int i = 0, j = TEST_EMPLOYEES.length; i < j; i++) {
employeeDao.merge(TEST_EMPLOYEES[i]);
}
if (log.isInfoEnabled()) {
log.info("TestDataProvider - [addTestEmployees]: Added test employee data.");
}
} catch (StorageException e) {
log.error("TestDataProvider - [addTestEmployees]: Exception catched: " + e.getMessage());
}
|
protected void | addTestSkills()
try {
for (int i = 0, j = TEST_SKILLS.length; i < j; i++) {
skillDao.merge(TEST_SKILLS[i]);
}
if (log.isInfoEnabled()) {
log.info("TestDataProvider - [addTestSkills]: Added test skill data.");
}
} catch (StorageException e) {
log.error("TestDataProvider - [addTestSkills]: Exception catched: " + e.getMessage());
}
|
public void | afterPropertiesSet()
addTestData();
|
public void | setEmployeeDao(org.apache.struts2.showcase.dao.EmployeeDao employeeDao)
this.employeeDao = employeeDao;
|
public void | setSkillDao(org.apache.struts2.showcase.dao.SkillDao skillDao)
this.skillDao = skillDao;
|