ThruStagingHandler extends AbstractStagingHandler { @Override public boolean isFullyBuffered() { return false; } ThruStagingHandler( final OutputStream outputStream, final IPentahoSession userSession ); @Override void complete(); @Override void close(); @Override int getWrittenByteCount(); @Override boolean canSendHeaders(); @Override OutputStream getStagingOutputStream(); @Override boolean isFullyBuffered(); @Override StagingMode getStagingMode();  }
@Test public void testFullyBuffered() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ThruStagingHandler handler = new ThruStagingHandler( baos, session ); assertFalse( handler.isFullyBuffered() ); }