use of org.seasar.doma.it.entity.Employee in project doma by domaframework.
the class SqlFileSelectTest method testEnsureResultMappping_false.
@Test
public void testEnsureResultMappping_false(Config config) throws Exception {
EmployeeDao dao = new EmployeeDaoImpl(config);
List<Employee> employees = dao.selectOnlyNameWithoutMappingCheck();
assertEquals(14, employees.size());
}
use of org.seasar.doma.it.entity.Employee in project doma by domaframework.
the class SqlFileSelectTest method testNull.
@Test
public void testNull(Config config) throws Exception {
EmployeeDao dao = new EmployeeDaoImpl(config);
Employee employee = dao.selectById(9);
assertNull(employee.getManagerId());
}
use of org.seasar.doma.it.entity.Employee in project doma by domaframework.
the class AutoProcedureTest method testResultSet.
@Test
public void testResultSet(Config config) throws Exception {
ProcedureDao dao = new ProcedureDaoImpl(config);
List<Employee> employees = new ArrayList<>();
dao.proc_resultset(employees, 1);
assertEquals(13, employees.size());
}
use of org.seasar.doma.it.entity.Employee in project doma by domaframework.
the class AutoProcedureTest method testResultSet_Out.
@Test
public void testResultSet_Out(Config config) throws Exception {
ProcedureDao dao = new ProcedureDaoImpl(config);
List<Employee> employees = new ArrayList<>();
Reference<Integer> count = new Reference<>();
dao.proc_resultset_out(employees, 1, count);
assertEquals(13, employees.size());
assertEquals(Integer.valueOf(14), count.get());
}
use of org.seasar.doma.it.entity.Employee in project doma by domaframework.
the class AutoProcedureTest method testResultSetAndUpdate_Out.
@Test
public void testResultSetAndUpdate_Out(Config config) throws Exception {
ProcedureDao dao = new ProcedureDaoImpl(config);
List<Employee> employees = new ArrayList<>();
List<Department> departments = new ArrayList<>();
Reference<Integer> count = new Reference<>();
dao.proc_resultsets_updates_out(employees, departments, 1, 1, count);
assertEquals(13, employees.size());
assertEquals(3, departments.size());
assertEquals(Integer.valueOf(14), count.get());
}
Aggregations