MemStagingHandler extends AbstractStagingHandler { @Override public StagingMode getStagingMode() { return StagingMode.MEMORY; } MemStagingHandler( 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 testStagingMode() throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); MemStagingHandler handler = new MemStagingHandler( baos, session ); assertEquals( StagingMode.MEMORY, handler.getStagingMode() ); }