use of org.seasar.doma.it.dao.ProcedureDao in project doma by domaframework.
the class AutoProcedureTest method testResultSet_check.
@Test
public void testResultSet_check(Config config) throws Exception {
ProcedureDao dao = new ProcedureDaoImpl(config);
List<Employee> employees = new ArrayList<>();
try {
dao.proc_resultset_check(employees, 1);
fail();
} catch (ResultMappingException ignored) {
System.err.println(ignored);
}
}
use of org.seasar.doma.it.dao.ProcedureDao in project doma by domaframework.
the class AutoProcedureTest method testResultSetAndUpdate.
@Test
public void testResultSetAndUpdate(Config config) throws Exception {
ProcedureDao dao = new ProcedureDaoImpl(config);
List<Employee> employees = new ArrayList<>();
dao.proc_resultset_update(employees, 1);
assertEquals(13, employees.size());
DepartmentDao departmentDao = new DepartmentDaoImpl(config);
Department department = departmentDao.selectById(1);
assertEquals("HOGE", department.getDepartmentName());
}
use of org.seasar.doma.it.dao.ProcedureDao in project doma by domaframework.
the class AutoProcedureTest method testNoParam.
@Test
public void testNoParam(Config config) throws Exception {
ProcedureDao dao = new ProcedureDaoImpl(config);
dao.proc_none_param();
}
use of org.seasar.doma.it.dao.ProcedureDao in project doma by domaframework.
the class AutoProcedureTest method testOneParam_time.
@Test
public void testOneParam_time(Config config) throws Exception {
ProcedureDao dao = new ProcedureDaoImpl(config);
dao.proc_simpletype_time_param(Time.valueOf("12:34:56"));
}
use of org.seasar.doma.it.dao.ProcedureDao in project doma by domaframework.
the class AutoProcedureTest method testResultSets.
@Test
public void testResultSets(Config config) throws Exception {
ProcedureDao dao = new ProcedureDaoImpl(config);
List<Employee> employees = new ArrayList<>();
List<Department> departments = new ArrayList<>();
dao.proc_resultsets(employees, departments, 1, 1);
assertEquals(13, employees.size());
assertEquals(3, departments.size());
}
Aggregations