@Test public void table() throws Exception { final TableData data = mock(TableData.class); final String title = "A title"; when(powerPointService.table(data, title)).thenReturn(new XMLSlideShow()); powerPointExportService.table(new ByteArrayOutputStream(), data, title); verify(powerPointService).table(data, title); }
@Override public void table(final OutputStream outputStream, final TableData data, final String title) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.table(data, title)); }
PowerPointExportService implements VisualDataExportService { @Override public void table(final OutputStream outputStream, final TableData data, final String title) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.table(data, title)); } }
PowerPointExportService implements VisualDataExportService { @Override public void table(final OutputStream outputStream, final TableData data, final String title) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.table(data, title)); } @Autowired  PowerPointExportService(final PowerPointService powerPointService); }
PowerPointExportService implements VisualDataExportService { @Override public void table(final OutputStream outputStream, final TableData data, final String title) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.table(data, title)); } @Autowired  PowerPointExportService(final PowerPointService powerPointService); @Override void topicMap(final OutputStream outputStream, final TopicMapData data); @Override void sunburst(final OutputStream outputStream, final SunburstData data); @Override void table(final OutputStream outputStream, final TableData data, final String title); @Override void map(final OutputStream outputStream, final MapData data, final String title); @Override void list(final OutputStream outputStream, final ListData data, final String results, final String sortBy); @Override void dateGraph(final OutputStream outputStream, final DategraphData data); @Override void report(final OutputStream outputStream, final ReportData data, final boolean multiPage); @Override Collection<ExportFormat> handlesFormats(); }
PowerPointExportService implements VisualDataExportService { @Override public void table(final OutputStream outputStream, final TableData data, final String title) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.table(data, title)); } @Autowired  PowerPointExportService(final PowerPointService powerPointService); @Override void topicMap(final OutputStream outputStream, final TopicMapData data); @Override void sunburst(final OutputStream outputStream, final SunburstData data); @Override void table(final OutputStream outputStream, final TableData data, final String title); @Override void map(final OutputStream outputStream, final MapData data, final String title); @Override void list(final OutputStream outputStream, final ListData data, final String results, final String sortBy); @Override void dateGraph(final OutputStream outputStream, final DategraphData data); @Override void report(final OutputStream outputStream, final ReportData data, final boolean multiPage); @Override Collection<ExportFormat> handlesFormats();  }