From 5bcd49ee58b0afe204d107e73d9e88e4c6152e5c Mon Sep 17 00:00:00 2001 From: e550448 Date: Wed, 1 Jan 2025 19:10:45 +0100 Subject: [PATCH] feat: Updated HtmlToPdfConverter Refs: DEV-12343 --- .../extension/pdf_exporter/converter/HtmlToPdfConverter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/sbb/polarion/extension/pdf_exporter/converter/HtmlToPdfConverter.java b/src/main/java/ch/sbb/polarion/extension/pdf_exporter/converter/HtmlToPdfConverter.java index 4f9bc86..cf36752 100644 --- a/src/main/java/ch/sbb/polarion/extension/pdf_exporter/converter/HtmlToPdfConverter.java +++ b/src/main/java/ch/sbb/polarion/extension/pdf_exporter/converter/HtmlToPdfConverter.java @@ -23,7 +23,7 @@ public class HtmlToPdfConverter { @Getter private final WeasyPrintServiceConnector weasyPrintServiceConnector; - @Inject + // TODO: refactor and remove to use injection option only public HtmlToPdfConverter() { this.pdfTemplateProcessor = new PdfTemplateProcessor(); PdfExporterFileResourceProvider fileResourceProvider = new PdfExporterFileResourceProvider(); @@ -31,7 +31,7 @@ public HtmlToPdfConverter() { this.weasyPrintServiceConnector = new WeasyPrintServiceConnector(); } - @VisibleForTesting + @Inject public HtmlToPdfConverter(PdfTemplateProcessor pdfTemplateProcessor, HtmlProcessor htmlProcessor, WeasyPrintServiceConnector weasyPrintServiceConnector) { this.pdfTemplateProcessor = pdfTemplateProcessor; this.htmlProcessor = htmlProcessor;