use of org.pentaho.metadata.query.model.util.QueryModelMetaData in project pentaho-platform by pentaho.
the class SQLResultSetTest method testMemoryCopy_setMetadaQuery.
@Test
public void testMemoryCopy_setMetadaQuery() throws SQLException {
IPentahoMetaData metadata = new QueryModelMetaData(mock(QueryModelMetaData.class));
SQLResultSet resultSet = new SQLResultSet(nativeResultSet, nativeConnection);
resultSet.setMetaData(metadata);
IPentahoResultSet memoryCopyResultSet = resultSet.memoryCopy();
assertEquals(metadata.getClass(), memoryCopyResultSet.getMetaData().getClass());
}
Aggregations