@Test(expected = PowerPointExportService.PowerPointExportException.class) public void topicMapButError() throws Exception { final TopicMapData data = mock(TopicMapData.class); when(powerPointService.topicmap(data)).thenThrow(new TemplateLoadException("")); powerPointExportService.topicMap(new ByteArrayOutputStream(), data); }
@Override public void topicMap(final OutputStream outputStream, final TopicMapData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.topicmap(data)); }
PowerPointExportService implements VisualDataExportService { @Override public void topicMap(final OutputStream outputStream, final TopicMapData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.topicmap(data)); } }
PowerPointExportService implements VisualDataExportService { @Override public void topicMap(final OutputStream outputStream, final TopicMapData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.topicmap(data)); } @Autowired  PowerPointExportService(final PowerPointService powerPointService); }
PowerPointExportService implements VisualDataExportService { @Override public void topicMap(final OutputStream outputStream, final TopicMapData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.topicmap(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 topicMap(final OutputStream outputStream, final TopicMapData data) throws IOException { writeToStreamHandlingException(outputStream, () -> powerPointService.topicmap(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();  }