@Test public void dateGraph() throws Exception { final DategraphData data = mock(DategraphData.class); when(powerPointService.graph(data)).thenReturn(new XMLSlideShow()); powerPointExportService.dateGraph(new ByteArrayOutputStream(), data); verify(powerPointService).graph(data); }
@Override public void dateGraph(final OutputStream outputStream, final DategraphData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.graph(data)); }
PowerPointExportService implements VisualDataExportService { @Override public void dateGraph(final OutputStream outputStream, final DategraphData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.graph(data)); } }
PowerPointExportService implements VisualDataExportService { @Override public void dateGraph(final OutputStream outputStream, final DategraphData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.graph(data)); } @Autowired  PowerPointExportService(final PowerPointService powerPointService); }
PowerPointExportService implements VisualDataExportService { @Override public void dateGraph(final OutputStream outputStream, final DategraphData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.graph(data)); } @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 dateGraph(final OutputStream outputStream, final DategraphData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.graph(data)); } @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();  }