From e5dbccba50a874b1163721fe1a9adcf10d2a1925 Mon Sep 17 00:00:00 2001 From: Sergey Grigoriev Date: Wed, 7 Aug 2024 13:32:18 +0200 Subject: [PATCH] feat!: remove WeasyPrint CLI support Refs: #129 --- .../polarion/extension/pdf/exporter/weasyprint/BasicTest.java | 1 + .../extension/pdf/exporter/weasyprint/CoverPageTest.java | 1 + .../extension/pdf/exporter/weasyprint/PageBreaksTest.java | 1 + .../pdf/exporter/weasyprint/PdfConverterWeasyPrintTest.java | 1 + .../extension/pdf/exporter/weasyprint/PdfWidthTest.java | 1 + .../pdf/exporter/weasyprint/{ => base}/BaseWeasyPrintTest.java | 3 ++- .../pdf/exporter/weasyprint/{ => base}/ParamSetCondition.java | 2 +- .../weasyprint/{ => base}/SkipTestWhenParamNotSet.java | 2 +- 8 files changed, 9 insertions(+), 3 deletions(-) rename src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/{ => base}/BaseWeasyPrintTest.java (97%) rename src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/{ => base}/ParamSetCondition.java (94%) rename src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/{ => base}/SkipTestWhenParamNotSet.java (86%) diff --git a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/BasicTest.java b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/BasicTest.java index 2010eeb..a30be71 100644 --- a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/BasicTest.java +++ b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/BasicTest.java @@ -1,5 +1,6 @@ package ch.sbb.polarion.extension.pdf.exporter.weasyprint; +import ch.sbb.polarion.extension.pdf.exporter.weasyprint.base.BaseWeasyPrintTest; import org.junit.jupiter.api.Test; import static org.assertj.core.api.Assertions.assertThat; diff --git a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/CoverPageTest.java b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/CoverPageTest.java index bb9f497..bb142d5 100644 --- a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/CoverPageTest.java +++ b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/CoverPageTest.java @@ -1,6 +1,7 @@ package ch.sbb.polarion.extension.pdf.exporter.weasyprint; import ch.sbb.polarion.extension.pdf.exporter.util.MediaUtils; +import ch.sbb.polarion.extension.pdf.exporter.weasyprint.base.BaseWeasyPrintTest; import lombok.SneakyThrows; import org.apache.pdfbox.Loader; import org.apache.pdfbox.pdmodel.PDDocument; diff --git a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PageBreaksTest.java b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PageBreaksTest.java index 75893b3..0577c26 100644 --- a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PageBreaksTest.java +++ b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PageBreaksTest.java @@ -1,5 +1,6 @@ package ch.sbb.polarion.extension.pdf.exporter.weasyprint; +import ch.sbb.polarion.extension.pdf.exporter.weasyprint.base.BaseWeasyPrintTest; import lombok.SneakyThrows; import org.junit.jupiter.api.Test; diff --git a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PdfConverterWeasyPrintTest.java b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PdfConverterWeasyPrintTest.java index 8cd5483..6c5f39c 100644 --- a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PdfConverterWeasyPrintTest.java +++ b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PdfConverterWeasyPrintTest.java @@ -22,6 +22,7 @@ import ch.sbb.polarion.extension.pdf.exporter.util.html.HtmlLinksHelper; import ch.sbb.polarion.extension.pdf.exporter.util.placeholder.PlaceholderProcessor; import ch.sbb.polarion.extension.pdf.exporter.util.velocity.VelocityEvaluator; +import ch.sbb.polarion.extension.pdf.exporter.weasyprint.base.BaseWeasyPrintTest; import ch.sbb.polarion.extension.pdf.exporter.weasyprint.service.WeasyPrintServiceConnector; import com.polarion.alm.projects.IProjectService; import com.polarion.alm.projects.model.IProject; diff --git a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PdfWidthTest.java b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PdfWidthTest.java index f5b68df..c0b11e3 100644 --- a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PdfWidthTest.java +++ b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/PdfWidthTest.java @@ -4,6 +4,7 @@ import ch.sbb.polarion.extension.pdf.exporter.rest.model.conversion.PaperSize; import ch.sbb.polarion.extension.pdf.exporter.util.HtmlProcessor; import ch.sbb.polarion.extension.pdf.exporter.util.MediaUtils; +import ch.sbb.polarion.extension.pdf.exporter.weasyprint.base.BaseWeasyPrintTest; import lombok.SneakyThrows; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; diff --git a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/BaseWeasyPrintTest.java b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/BaseWeasyPrintTest.java similarity index 97% rename from src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/BaseWeasyPrintTest.java rename to src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/BaseWeasyPrintTest.java index b1566ef..53925a1 100644 --- a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/BaseWeasyPrintTest.java +++ b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/BaseWeasyPrintTest.java @@ -1,6 +1,7 @@ -package ch.sbb.polarion.extension.pdf.exporter.weasyprint; +package ch.sbb.polarion.extension.pdf.exporter.weasyprint.base; import ch.sbb.polarion.extension.pdf.exporter.util.MediaUtils; +import ch.sbb.polarion.extension.pdf.exporter.weasyprint.WeasyPrintOptions; import ch.sbb.polarion.extension.pdf.exporter.weasyprint.service.WeasyPrintServiceConnector; import com.polarion.core.util.StringUtils; import lombok.SneakyThrows; diff --git a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/ParamSetCondition.java b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/ParamSetCondition.java similarity index 94% rename from src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/ParamSetCondition.java rename to src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/ParamSetCondition.java index 1cddb62..ae626f5 100644 --- a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/ParamSetCondition.java +++ b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/ParamSetCondition.java @@ -1,4 +1,4 @@ -package ch.sbb.polarion.extension.pdf.exporter.weasyprint; +package ch.sbb.polarion.extension.pdf.exporter.weasyprint.base; import org.junit.jupiter.api.extension.ConditionEvaluationResult; import org.junit.jupiter.api.extension.ExecutionCondition; diff --git a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/SkipTestWhenParamNotSet.java b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/SkipTestWhenParamNotSet.java similarity index 86% rename from src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/SkipTestWhenParamNotSet.java rename to src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/SkipTestWhenParamNotSet.java index 5975a52..2552912 100644 --- a/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/SkipTestWhenParamNotSet.java +++ b/src/test/java/ch/sbb/polarion/extension/pdf/exporter/weasyprint/base/SkipTestWhenParamNotSet.java @@ -1,4 +1,4 @@ -package ch.sbb.polarion.extension.pdf.exporter.weasyprint; +package ch.sbb.polarion.extension.pdf.exporter.weasyprint.base; import org.junit.jupiter.api.extension.ExtendWith;