MDXBaseComponent extends ComponentBase implements IDataComponent, IPreparedComponent { protected void waitFor( final int millis ) { try { if ( ComponentBase.debug ) { debug( Messages.getInstance().getString( "MDXBaseComponent.DEBUG_WAITING_FOR_CONNECTION", Integer.toString( millis ) ) ); } Thread.sleep( millis ); } catch ( Exception ex ) { } }  @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 testWaitFor() throws Exception { mdxBaseComponent.waitFor( 0 ); mdxBaseComponent.waitFor( -1 ); }