use of com.github.drinkjava2.jdbpro.handler.PrintSqlHandler in project jSqlBox by drinkjava2.
the class HandlersTest method testPrintSqlHandler.
@Test
public void testPrintSqlHandler() throws SQLException {
List<Map<String, Object>> result = ctx.nQuery(new MapListHandler(), "select u.* from DemoUser u where u.age>?", 0);
Assert.assertTrue(result.size() == 99);
List<Map<String, Object>> result2 = ctx.nQuery(new Wrap(new MapListHandler(), new PrintSqlHandler()), "select u.* from DemoUser u where u.age>?", 0);
Assert.assertTrue(result2.size() == 99);
}
Aggregations