use of org.seasar.doma.it.dao.FunctionDaoImpl in project doma by domaframework.
the class AutoFunctionTest method testOneParam.
@Test
public void testOneParam(Config config) throws Exception {
FunctionDao dao = new FunctionDaoImpl(config);
Integer result = dao.func_simpletype_param(Integer.valueOf(10));
assertEquals(Integer.valueOf(20), result);
}
use of org.seasar.doma.it.dao.FunctionDaoImpl in project doma by domaframework.
the class AutoFunctionTest method testResultSet_check.
@Test
@Run(unless = { Dbms.MYSQL, Dbms.SQLSERVER })
public void testResultSet_check(Config config) throws Exception {
FunctionDao dao = new FunctionDaoImpl(config);
try {
dao.func_resultset_check(Integer.valueOf(1));
fail();
} catch (ResultMappingException ignored) {
System.err.println(ignored);
}
}
use of org.seasar.doma.it.dao.FunctionDaoImpl in project doma by domaframework.
the class AutoFunctionTest method testResultSet.
@Test
@Run(unless = { Dbms.MYSQL, Dbms.SQLSERVER })
public void testResultSet(Config config) throws Exception {
FunctionDao dao = new FunctionDaoImpl(config);
List<Employee> result = dao.func_resultset(Integer.valueOf(1));
assertEquals(13, result.size());
}
use of org.seasar.doma.it.dao.FunctionDaoImpl in project doma by domaframework.
the class AutoFunctionTest method testScalarResultSet.
@Test
@Run(onlyIf = { Dbms.POSTGRESQL })
public void testScalarResultSet(Config config) throws Exception {
FunctionDao dao = new FunctionDaoImpl(config);
List<String> result = dao.func_simpletype_resultset(Integer.valueOf(1));
assertEquals(13, result.size());
assertEquals("ALLEN", result.get(0));
}
use of org.seasar.doma.it.dao.FunctionDaoImpl in project doma by domaframework.
the class AutoFunctionTest method testTwoParams_time.
@Test
public void testTwoParams_time(Config config) throws Exception {
FunctionDao dao = new FunctionDaoImpl(config);
Time result = dao.func_dto_time_param(Time.valueOf("12:34:56"), Integer.valueOf(20));
assertEquals(Time.valueOf("12:34:56"), result);
}
Aggregations