Cucumber JTDS passing resultset between two methods

I am trying to pass the resultset i have created into another method, there are two steps in my stepdefinition where second stepdefinition is going to be dependent on the resultset i have initiated in earlier method. the issue I tried two approach one is i passed the resultset without closing the same to another method. it does not work as resulset is only getting the header values and not the complete list. Also I have tried to pass the array list but it is also showing as null.


Read More »

By: StackOverFlow - Wednesday, 14 March

Related Posts

  • Older News
  • ResultSet getXXX() without next() StackOverFlow (3 days ago) - During analyze legacy part of project which I'm working at, I've found following method:public int getCount(String tableName, Connection connection) throws SQLException {try (Statement statement = connection.createStatement();ResultSet resultSet = statement.executeQuery("SELECT COUNT...