@Test public void test_resultSetNext_return_successfully() { assertEquals(42, it.wrapSqlException(() -> 42)); }
<R> R wrapSqlException(SqlAction<R> action) { try { return action.perform(); } catch (SQLException sqlException) { throw excTranslator.translate("StreamResultSetExtractor", sql, sqlException); } }
ResultSetIterator implements Iterator<T> { <R> R wrapSqlException(SqlAction<R> action) { try { return action.perform(); } catch (SQLException sqlException) { throw excTranslator.translate("StreamResultSetExtractor", sql, sqlException); } } }
ResultSetIterator implements Iterator<T> { <R> R wrapSqlException(SqlAction<R> action) { try { return action.perform(); } catch (SQLException sqlException) { throw excTranslator.translate("StreamResultSetExtractor", sql, sqlException); } } ResultSetIterator(
            String sql,
            ResultSet rs,
            RowMapper<T> mapper,
            SQLExceptionTranslator excTranslator); }
ResultSetIterator implements Iterator<T> { <R> R wrapSqlException(SqlAction<R> action) { try { return action.perform(); } catch (SQLException sqlException) { throw excTranslator.translate("StreamResultSetExtractor", sql, sqlException); } } ResultSetIterator(
            String sql,
            ResultSet rs,
            RowMapper<T> mapper,
            SQLExceptionTranslator excTranslator); @Override boolean hasNext(); @Override T next(); }
ResultSetIterator implements Iterator<T> { <R> R wrapSqlException(SqlAction<R> action) { try { return action.perform(); } catch (SQLException sqlException) { throw excTranslator.translate("StreamResultSetExtractor", sql, sqlException); } } ResultSetIterator(
            String sql,
            ResultSet rs,
            RowMapper<T> mapper,
            SQLExceptionTranslator excTranslator); @Override boolean hasNext(); @Override T next();  }