use of javax.sql.rowset.CachedRowSet in project jdk8u_jdk by JetBrains.
the class JoinRowSetTests method joinRowSetTests0002.
/*
* Join two CachedRowSets specifying a column name to join against
*/
@Test(dataProvider = "createCachedRowSetsToUse")
public void joinRowSetTests0002(CachedRowSet crs, CachedRowSet crs1) throws Exception {
try (JoinRowSet jrs = newInstance()) {
RowSet[] rowsets = { crs, crs1 };
String[] joinCols = { JOIN_COLNAME, JOIN_COLNAME };
jrs.addRowSet(rowsets, joinCols);
validateResults(jrs);
crs.close();
crs1.close();
}
}
Aggregations