From 5156c560f2bbc760d60d676e8be9845a257d3919 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Wed, 1 Mar 2023 14:50:48 +0200 Subject: [PATCH] RED-6162 - test issue on bamboo --- .../ocr/v1/server/OcrServiceIntegrationTest.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/ocr-service-v1/ocr-service-server-v1/src/test/java/com/iqser/red/service/ocr/v1/server/OcrServiceIntegrationTest.java b/ocr-service-v1/ocr-service-server-v1/src/test/java/com/iqser/red/service/ocr/v1/server/OcrServiceIntegrationTest.java index 98cd316..90881ff 100644 --- a/ocr-service-v1/ocr-service-server-v1/src/test/java/com/iqser/red/service/ocr/v1/server/OcrServiceIntegrationTest.java +++ b/ocr-service-v1/ocr-service-server-v1/src/test/java/com/iqser/red/service/ocr/v1/server/OcrServiceIntegrationTest.java @@ -25,6 +25,8 @@ import io.micrometer.prometheus.PrometheusMeterRegistry; import io.micrometer.prometheus.PrometheusTimer; import lombok.SneakyThrows; + +@Disabled // OCRModule is not available on build server. If you want to run the test set the property at the top. @SpringBootTest(properties = {"pdftron.ocrmodule.path=/YourOCRModulePath"}) public class OcrServiceIntegrationTest extends AbstractTest { @@ -39,21 +41,12 @@ public class OcrServiceIntegrationTest extends AbstractTest { @BeforeEach @SneakyThrows - @Disabled public void assertOCRModuleIsLoaded() { assert OCRModule.isModuleAvailable(); } - @Test - public void mockTest() { - - int i = 1; - assertThat(i).isEqualTo(1); - } - @Test - @Disabled // OCRModule is not available on build server. If you want to run the test set the property at the top. public void testOCRMetrics() { testOCR("Watermark"); @@ -69,7 +62,6 @@ public class OcrServiceIntegrationTest extends AbstractTest { @Test - @Disabled // OCRModule is not available on build server. If you want to run the test set the property at the top. public void testOcr() { // check visually for most of the images containing text, the resulting text is kind of nonsense, just ensure it is there String text = testOCR("StitchedImagesMultiPage"); @@ -77,7 +69,6 @@ public class OcrServiceIntegrationTest extends AbstractTest { @Test - @Disabled // OCRModule is not available on build server. If you want to run the test set the property at the top. public void testManyRotatedImages() { // check visually for most of the images containing text, the resulting text is kind of nonsense, just ensure it is there String text = testOCR("manyRotatedImages"); @@ -86,7 +77,6 @@ public class OcrServiceIntegrationTest extends AbstractTest { @Test - @Disabled // OCRModule is not available on build server. If you want to run the test set the property at the top. public void testMergeImages() { // check visually for most of the images containing text, the resulting text is kind of nonsense, just ensure it is there String text = testOCR("merge_images"); @@ -107,7 +97,6 @@ public class OcrServiceIntegrationTest extends AbstractTest { @Test - @Disabled // OCRModule is not available on build server. If you want to run the test set the property at the top. public void testOCRWatermark() { assertThat(testOCR("Watermark")).contains("syngenta"); @@ -115,7 +104,6 @@ public class OcrServiceIntegrationTest extends AbstractTest { @Test - @Disabled // OCRModule is not available on build server. If you want to run the test set the property at the top. public void testOCRInvisibleText() { String text = testOCR("InvisibleText");