@Test public void testExport() { tested.execute(callback); verify(canvasFileExport, times(1)).exportToSvg(eq(canvasHandler), eq(FILE_NAME)); verify(canvasFileExport, never()).exportToJpg(any(AbstractCanvasHandler.class), anyString()); verify(canvasFileExport, never()).exportToPdf(any(AbstractCanvasHandler.class), anyString()); verify(canvasFileExport, never()).exportToPng(any(AbstractCanvasHandler.class), anyString()); }
@Override protected void export(final String fileName) { canvasFileExport.exportToSvg(getSession().getCanvasHandler(), fileName); }
ExportToSvgSessionCommand extends AbstractExportSessionCommand { @Override protected void export(final String fileName) { canvasFileExport.exportToSvg(getSession().getCanvasHandler(), fileName); } }
ExportToSvgSessionCommand extends AbstractExportSessionCommand { @Override protected void export(final String fileName) { canvasFileExport.exportToSvg(getSession().getCanvasHandler(), fileName); } protected  ExportToSvgSessionCommand(); @Inject  ExportToSvgSessionCommand(final CanvasFileExport canvasFileExport); }
ExportToSvgSessionCommand extends AbstractExportSessionCommand { @Override protected void export(final String fileName) { canvasFileExport.exportToSvg(getSession().getCanvasHandler(), fileName); } protected  ExportToSvgSessionCommand(); @Inject  ExportToSvgSessionCommand(final CanvasFileExport canvasFileExport);  }
ExportToSvgSessionCommand extends AbstractExportSessionCommand { @Override protected void export(final String fileName) { canvasFileExport.exportToSvg(getSession().getCanvasHandler(), fileName); } protected  ExportToSvgSessionCommand(); @Inject  ExportToSvgSessionCommand(final CanvasFileExport canvasFileExport);   }