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