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