MDXBaseComponent extends ComponentBase implements IDataComponent, IPreparedComponent { public IPentahoConnection shareConnection() { return connection; }  @Override abstract boolean validateSystemSettings(); @Override abstract Log getLogger(); IPentahoResultSet getResultSet(); @Override void done(); void dispose(); IPentahoConnection shareConnection(); IPentahoResultSet executePrepared( final Map preparedParams ); IPentahoConnection getDatasourceConnection(); @Override boolean init(); static final String FORMATTED_CELL_VALUES; }
@Test public void testShareConnection() throws Exception { mdxBaseComponent.setConnection( conn ); assertEquals( conn, mdxBaseComponent.shareConnection() ); }