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