public void consultTable() throws SQLException { String sql = "select count(*) from DEPT"; IConnection conn = pool.poll(); PreparedStatement ps = conn.prepareStatement(sql); ResultSet rs = ps.executeQuery(); if (rs.next()) { if (ConnPrintOutUtil.isOnServer()) { Assert.assertEquals(4, rs.getInt(1)); } } }